X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=builtin%2Fgrep.c;h=da32f3df34da7af3cdcb0a9dd6aa66061bdfe927;hb=381b2e76985de1c3670ec3c1938fef679c6eef17;hp=ca56c5b0099e19059b51440880d032c5e1d27f5e;hpb=fc196b68905958dac66e1baaa3b66b84a2cdacfc;p=git.git diff --git a/builtin/grep.c b/builtin/grep.c index ca56c5b00..da32f3df3 100644 --- a/builtin/grep.c +++ b/builtin/grep.c @@ -834,9 +834,9 @@ int cmd_grep(int argc, const char **argv, const char *prefix) int external_grep_allowed__ignored; const char *show_in_pager = NULL, *default_pager = "dummy"; struct grep_opt opt; - struct object_array list = { 0, 0, NULL }; + struct object_array list = OBJECT_ARRAY_INIT; 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 use_index = 1;