]> asedeno.scripts.mit.edu Git - git.git/blobdiff - builtin/fmt-merge-msg.c
Merge branch 'rr/fmt-merge-msg'
[git.git] / builtin / fmt-merge-msg.c
index d2eed43ab5c165f3b0ed10ba3df4296fc4679dd2..78c77742b6e6863b1eb4d61750ae253710223aa2 100644 (file)
@@ -39,8 +39,8 @@ void init_src_data(struct src_data *data)
        data->generic.strdup_strings = 1;
 }
 
-static struct string_list srcs = { NULL, 0, 0, 1 };
-static struct string_list origins = { NULL, 0, 0, 1 };
+static struct string_list srcs = STRING_LIST_INIT_DUP;
+static struct string_list origins = STRING_LIST_INIT_DUP;
 
 static int handle_line(char *line)
 {
@@ -147,7 +147,7 @@ static void shortlog(const char *name, unsigned char *sha1,
        int i, count = 0;
        struct commit *commit;
        struct object *branch;
-       struct string_list subjects = { NULL, 0, 0, 1 };
+       struct string_list subjects = STRING_LIST_INIT_DUP;
        int flags = UNINTERESTING | TREESAME | SEEN | SHOWN | ADDED;
        struct strbuf sb = STRBUF_INIT;