Merge branch 'bc/grep-i-F' into maint
[git.git] / builtin-grep.c
index b41ad1e43a1e4bc4bec8d4d6b8c0fd68aa6aa92f..d79a6260a4b6f9a467356de117e100cd1a457b23 100644 (file)
@@ -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)