Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/pretty-commit-header-incomplete-line' into maint
[gitweb.git]
/
grep.c
diff --git
a/grep.c
b/grep.c
index 190139cfcd0d61f364a88010fe1dd6e71e26f9e2..f8ffa46209c0797f2b5f1f1d7470243a4e7654d1 100644
(file)
--- a/
grep.c
+++ b/
grep.c
@@
-318,7
+318,7
@@
static struct grep_expr *prep_header_patterns(struct grep_opt *opt)
if (!opt->header_list)
return NULL;
- p = opt->header_list;
+
for (p = opt->header_list; p; p = p->next) {
if (p->token != GREP_PATTERN_HEAD)
die("bug: a non-header pattern in grep header list.");