diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-06-13 10:37:48 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-06-13 10:37:48 -0700 |
commit | 7013220d2b3181d4ae55e21e0f18b9abfd6e011d (patch) | |
tree | 4ceb8a1c5dd10047c7d9b59a30e9687cc7fc8372 /parse-options-cb.c | |
parent | e059388fb200fb2b5281ce211242ef3525a9c2c7 (diff) | |
parent | 64093fc06a871f71316211a2aea6bb46c49b20ab (diff) | |
download | git-7013220d2b3181d4ae55e21e0f18b9abfd6e011d.tar.gz |
Merge branch 'jk/parseopt-string-list' into jk/string-list-static-init
* jk/parseopt-string-list:
blame,shortlog: don't make local option variables static
interpret-trailers: don't duplicate option strings
parse_opt_string_list: stop allocating new strings
Diffstat (limited to 'parse-options-cb.c')
-rw-r--r-- | parse-options-cb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parse-options-cb.c b/parse-options-cb.c index 239898d946..ba5acf3111 100644 --- a/parse-options-cb.c +++ b/parse-options-cb.c @@ -144,7 +144,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; } |