X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-grep.c;h=1df25b07b573301bba7fdcb3b13d1af9050f513e;hb=753dc384dc2c4ab3e1049f695425cebf41ff7e6b;hp=761799d7d0afd62ecba99d703a8595664faa4723;hpb=a17a9606e49dd3ad08558706f85475a694deb68b;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)