summaryrefslogtreecommitdiff
path: root/notes.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2012-11-04 08:07:07 +0100
committerJeff King <peff@peff.net>2012-11-08 11:34:22 -0500
commitf992f0c80f30ac5a0aacfdfad55083dafb33047e (patch)
tree3fb6c55ddaaa8c5a87e3016b84b55a9a0b681417 /notes.c
parent6bb2a1377b4b7a044f69d0107c38479180694fac (diff)
downloadgit-f992f0c80f30ac5a0aacfdfad55083dafb33047e.tar.gz
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>
Diffstat (limited to 'notes.c')
-rw-r--r--notes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/notes.c b/notes.c
index bc454e1eab..8652f8fcf3 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;