Initialize sort_uniq_list using named constant

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Acked-by: Johan Herland <johan@herland.net> Signed-off-by: Jeff King <peff@peff.net>

Michael Haggerty committed Nov 4, 2012 at 08:07 UTC f992f0c80f30ac5a0aacfdfad55083dafb33047e
1 file changed +1 -1
notes.c
+1 -1
@@ -901,7 +901,7 @@ static int string_list_join_lines_helper(struct string_list_item *item,
901 int combine_notes_cat_sort_uniq(unsigned char *cur_sha1,
902 const unsigned char *new_sha1)
903 {
904 - struct string_list sort_uniq_list = { NULL, 0, 0, 1 };
904 + struct string_list sort_uniq_list = STRING_LIST_INIT_DUP;
905 struct strbuf buf = STRBUF_INIT;
906 int ret = 1;
907