diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-07-06 13:38:07 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-07-06 13:38:08 -0700 |
commit | b8b6365a8a214f2427f2cf9334fd43ace0be619c (patch) | |
tree | 983ce79cdb05e7d8612b3240699b9cbf20370a30 /t/helper | |
parent | 7e58b8166e6ac191739cf9001e73b2157f3aead5 (diff) | |
parent | 2721ce21e439ee0726dc69073acd7e0d2b2407b3 (diff) | |
download | git-b8b6365a8a214f2427f2cf9334fd43ace0be619c.tar.gz |
Merge branch 'jk/string-list-static-init'
Instead of taking advantage of a struct string_list that is
allocated with all NULs happens to be STRING_LIST_INIT_NODUP kind,
initialize them explicitly as such, to document their behaviour
better.
* jk/string-list-static-init:
use string_list initializer consistently
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 't/helper')
-rw-r--r-- | t/helper/test-parse-options.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/helper/test-parse-options.c b/t/helper/test-parse-options.c index 8a1235d03e..2c63298fab 100644 --- a/t/helper/test-parse-options.c +++ b/t/helper/test-parse-options.c @@ -12,7 +12,7 @@ static int dry_run = 0, quiet = 0; static char *string = NULL; static char *file = NULL; static int ambiguous; -static struct string_list list; +static struct string_list list = STRING_LIST_INIT_NODUP; static struct { int called; |