Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 4abe87c

Browse files
committed
Merge branch 'ah/maint-grep-double-init'
By Angus Hammond * ah/maint-grep-double-init: grep.c: remove redundant line of code
2 parents dc7a4c3 + 2385f24 commit 4abe87c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ static struct grep_expr *prep_header_patterns(struct grep_opt *opt)
318318

319319
if (!opt->header_list)
320320
return NULL;
321-
p = opt->header_list;
321+
322322
for (p = opt->header_list; p; p = p->next) {
323323
if (p->token != GREP_PATTERN_HEAD)
324324
die("bug: a non-header pattern in grep header list.");

0 commit comments

Comments
 (0)