From: Michael Haggerty Date: Sun, 04 Nov 2012 07:07:07 GMT Subject: [PATCH 2/5] Initialize sort_uniq_list using named constant Message-ID: <1352012830-13591-3-git-send-email-mhagger@alum.mit.edu> In-Reply-To: <1352012830-13591-1-git-send-email-mhagger@alum.mit.edu> Signed-off-by: Michael Haggerty --- notes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes.c b/notes.c index bc454e1..8652f8f 100644 --- a/notes.c +++ b/notes.c @@ -901,7 +901,7 @@ static int string_list_join_lines_helper(struct string_list_item *item, int combine_notes_cat_sort_uniq(unsigned char *cur_sha1, const unsigned char *new_sha1) { - struct string_list sort_uniq_list = { NULL, 0, 0, 1 }; + struct string_list sort_uniq_list = STRING_LIST_INIT_DUP; struct strbuf buf = STRBUF_INIT; int ret = 1; -- 1.8.0