/
uis
/
git
/
x
/
uis
/
git
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
object.h: Add OBJECT_ARRAY_INIT macro and make use of it.
[git/git.git]
/
builtin
/
grep.c
diff --git
a/builtin/grep.c
b/builtin/grep.c
index
cf6c29f
..
b725ede
100644
(file)
--- 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;
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;
const char **paths = NULL;
struct string_list path_list = STRING_LIST_INIT_NODUP;
int i;