From: Angus Hammond Date: Sun, 6 May 2012 18:17:15 +0000 (+0100) Subject: grep.c: remove redundant line of code X-Git-Tag: v1.7.10.2~5^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2385f24625cda7cc050996d9966e57be2d4d11a3;p=git.git grep.c: remove redundant line of code Signed-off-by: Angus Hammond Signed-off-by: Junio C Hamano --- diff --git a/grep.c b/grep.c index d03d9e24c..433611344 100644 --- a/grep.c +++ b/grep.c @@ -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.");