grep.c: remove redundant line of code
authorAngus Hammond <angusgh@gmail.com>
Sun, 6 May 2012 18:17:15 +0000 (19:17 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 May 2012 18:25:04 +0000 (11:25 -0700)
Signed-off-by: Angus Hammond <angusgh@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
grep.c

diff --git a/grep.c b/grep.c
index d03d9e24c23eff2d60ae7226a412f3ccf66670fd..4336113442157e0bd4c5ac43b581ce7f8b02e8ae 100644 (file)
--- 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.");