mirror of
https://github.com/git/git.git
synced 2025-03-23 01:36:42 +00:00
Merge branch 'ah/maint-grep-double-init'
By Angus Hammond * ah/maint-grep-double-init: grep.c: remove redundant line of code
This commit is contained in:
commit
4abe87c14a
2
grep.c
2
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.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user