diff options
author | Thiago Farina <tfransosi@gmail.com> | 2010-08-28 23:04:17 -0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-08-29 22:42:49 -0700 |
commit | 3cd474599f1ede41863c523ddf76c94941b08164 (patch) | |
tree | 3ea9f6249e8c08a865f5d3b309d3c77e007c04d9 /builtin/grep.c | |
parent | 515cc0101943b766fde7aa894827119e332ec033 (diff) | |
download | git-3cd474599f1ede41863c523ddf76c94941b08164.tar.gz git-3cd474599f1ede41863c523ddf76c94941b08164.tar.xz |
object.h: Add OBJECT_ARRAY_INIT macro and make use of it.
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/grep.c')
-rw-r--r-- | builtin/grep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/grep.c b/builtin/grep.c index cf6c29fa4..b725ede0f 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; |