X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-grep.c;h=1df25b07b573301bba7fdcb3b13d1af9050f513e;hb=aa8dc9679a6a7daea261abe969af331c741a9f2c;hp=761799d7d0afd62ecba99d703a8595664faa4723;hpb=5b590d783a461c63fa803d1c21b57bc79c0207f7;p=git.git diff --git a/builtin-grep.c b/builtin-grep.c index 761799d7d..1df25b07b 100644 --- a/builtin-grep.c +++ b/builtin-grep.c @@ -631,7 +631,7 @@ static int file_callback(const struct option *opt, const char *arg, int unset) struct grep_opt *grep_opt = opt->value; FILE *patterns; int lno = 0; - struct strbuf sb; + struct strbuf sb = STRBUF_INIT; patterns = fopen(arg, "r"); if (!patterns)