From 3cd474599f1ede41863c523ddf76c94941b08164 Mon Sep 17 00:00:00 2001 From: Thiago Farina Date: Sat, 28 Aug 2010 23:04:17 -0300 Subject: object.h: Add OBJECT_ARRAY_INIT macro and make use of it. Signed-off-by: Thiago Farina Signed-off-by: Junio C Hamano --- builtin/grep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '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; -- cgit v1.2.1