summaryrefslogtreecommitdiff
path: root/builtin/grep.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-08-18 12:47:04 -0700
committerJunio C Hamano <gitster@pobox.com>2010-08-18 12:47:04 -0700
commit6b5005c88b3a0c360249deb8ca8b92201abaa824 (patch)
tree177a02c572549b4caa5872ef3ecd4275e860b5af /builtin/grep.c
parent165dc789d5e201a06e0de5a984e4529ae62027fc (diff)
parent183113a5ca99cb228b2ba0a29e53f1ac11f2c7c2 (diff)
downloadgit-6b5005c88b3a0c360249deb8ca8b92201abaa824.tar.gz
Merge branch 'tf/string-list-init'
* tf/string-list-init: string_list: Add STRING_LIST_INIT macro and make use of it.
Diffstat (limited to 'builtin/grep.c')
-rw-r--r--builtin/grep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/grep.c b/builtin/grep.c
index 597f76bc42..cf6c29fa42 100644
--- a/builtin/grep.c
+++ b/builtin/grep.c
@@ -836,7 +836,7 @@ int cmd_grep(int argc, const char **argv, const char *prefix)
struct grep_opt opt;
struct object_array list = { 0, 0, NULL };
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 nongit = 0, use_index = 1;