Skip to content

Commit

Permalink
grep.c: remove redundant line of code
Browse files Browse the repository at this point in the history
Signed-off-by: Angus Hammond <angusgh@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Angus Hammond authored and Junio C Hamano committed May 7, 2012
1 parent f174a25 commit 2385f24
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 @@ -289,7 +289,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 2385f24

Please sign in to comment.