mirror of
https://github.com/git/git.git
synced 2025-03-18 22:48:38 +00:00
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>
This commit is contained in:
parent
6bb2a1377b
commit
f992f0c80f
2
notes.c
2
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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user