]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/grep.c
string_list: Add STRING_LIST_INIT macro and make use of it.
[thirdparty/git.git] / builtin / grep.c
index 232cd1ce07bf3f695c722e6217ce653ff704d64b..103f64a210b854b531b2b333fc567a7965c3e87d 100644 (file)
@@ -836,7 +836,7 @@ int cmd_grep(int argc, const char **argv, const char *prefix)
        struct grep_opt opt;
        struct object_array list = { 0, 0, NULL };
        const char **paths = NULL;
-       struct string_list path_list = { NULL, 0, 0, 0 };
+       struct string_list path_list = STRING_LIST_INIT_NODUP;
        int i;
        int dummy;
        int nongit = 0, use_index = 1;