Skip to content

Commit

Permalink
Merge branch 'ah/maint-grep-double-init' into maint
Browse files Browse the repository at this point in the history
By Angus Hammond
* ah/maint-grep-double-init:
  grep.c: remove redundant line of code
  • Loading branch information
Junio C Hamano committed May 11, 2012
2 parents 51eb317 + 2385f24 commit f5f3746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grep.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit f5f3746

Please sign in to comment.