Skip to contentSkip to conversation

Remove redundant line of code from grep.c

PATCH New Angus Hammond 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove redundant line of code from grep.c

Remove double initialisation of p in grep_expr.

---
 grep.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
grep.c +1 -1
index 190139c..f8ffa46 100644
@@ -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.");
Signature · 1 line
1.7.9.5