X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;ds=sidebyside;f=builtin%2Fgrep.c;h=cf6c29fa42d96f8bc8282e779617a60d40796166;hb=b5442ca101c2d2b6eacaf3428505e5006f2218ae;hp=597f76bc42f51e0fc1906c287981e3d37dc0f536;hpb=1c80c9b2cb5ae0d8c77f3c73730225ca19aeef4a;p=git.git diff --git a/builtin/grep.c b/builtin/grep.c index 597f76bc4..cf6c29fa4 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;