Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Documentation: 'git add -A' can remove files
[gitweb.git]
/
builtin-grep.c
diff --git
a/builtin-grep.c
b/builtin-grep.c
index b41ad1e43a1e4bc4bec8d4d6b8c0fd68aa6aa92f..d79a6260a4b6f9a467356de117e100cd1a457b23 100644
(file)
--- 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)