aboutsummaryrefslogtreecommitdiff
path: root/grep.c
diff options
context:
space:
mode:
authorAngus Hammond <angusgh@gmail.com>2012-05-06 19:17:15 +0100
committerJunio C Hamano <gitster@pobox.com>2012-05-07 11:25:04 -0700
commit2385f24625cda7cc050996d9966e57be2d4d11a3 (patch)
tree1c8a273be6aa60494e2178dc751714161d1d5d44 /grep.c
parentf174a2583c9f42315b60205890fa67a79a1f1669 (diff)
downloadgit-2385f24625cda7cc050996d9966e57be2d4d11a3.tar.gz
git-2385f24625cda7cc050996d9966e57be2d4d11a3.tar.xz
grep.c: remove redundant line of code
Signed-off-by: Angus Hammond <angusgh@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'grep.c')
-rw-r--r--grep.c2
1 files changed, 1 insertions, 1 deletions
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.");