Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
parse_opt_string_list: stop allocating new strings
[gitweb.git]
/
parse-options-cb.c
diff --git
a/parse-options-cb.c
b/parse-options-cb.c
index 5ab6ed6b0875ff703e3d55abbd0e9d8b0aa1a3c7..4e8290181ff718a48296d6da551c182722691630 100644
(file)
--- a/
parse-options-cb.c
+++ b/
parse-options-cb.c
@@
-127,7
+127,7
@@
int parse_opt_string_list(const struct option *opt, const char *arg, int unset)
if (!arg)
return -1;
- string_list_append(v,
xstrdup(arg)
);
+ string_list_append(v,
arg
);
return 0;
}