X-Git-Url: https://git.uis.cam.ac.uk/x/uis/git/git.git/blobdiff_plain/515cc0101943b766fde7aa894827119e332ec033..3cd474599f1ede41863c523ddf76c94941b08164:/builtin/grep.c diff --git a/builtin/grep.c b/builtin/grep.c index cf6c29fa42..b725ede0f7 100644 --- a/builtin/grep.c +++ b/builtin/grep.c @@ -834,7 +834,7 @@ 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 = STRING_LIST_INIT_NODUP; int i;