X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=builtin%2Fgrep.c;h=da32f3df34da7af3cdcb0a9dd6aa66061bdfe927;hb=7fd739cd5720fbd1d170584baff7e4f706df641c;hp=ca56c5b0099e19059b51440880d032c5e1d27f5e;hpb=ff38d1a9953b3bce7741f8f962c5e067fda2d9ea;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;