From 2385f24625cda7cc050996d9966e57be2d4d11a3 Mon Sep 17 00:00:00 2001 From: Angus Hammond Date: Sun, 6 May 2012 19:17:15 +0100 Subject: [PATCH] grep.c: remove redundant line of code Signed-off-by: Angus Hammond Signed-off-by: Junio C Hamano --- grep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grep.c b/grep.c index d03d9e24c2..4336113442 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."); -- 2.11.4.GIT