summaryrefslogtreecommitdiff
path: root/parse-options-cb.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-06-13 10:37:48 -0700
committerJunio C Hamano <gitster@pobox.com>2016-06-13 10:37:48 -0700
commit7013220d2b3181d4ae55e21e0f18b9abfd6e011d (patch)
tree4ceb8a1c5dd10047c7d9b59a30e9687cc7fc8372 /parse-options-cb.c
parente059388fb200fb2b5281ce211242ef3525a9c2c7 (diff)
parent64093fc06a871f71316211a2aea6bb46c49b20ab (diff)
downloadgit-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.c2
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;
}