summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2012-05-10 10:49:31 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-05-10 10:49:31 -0700
commit4abe87c14a27aa134659849ddd9510f136536a48 (patch)
tree8bd09cc83cfa4017b57dd2bba13d9cefda346758
parentMerge branch 'js/checkout-detach-count' (diff)
parentgrep.c: remove redundant line of code (diff)
downloadtgif-4abe87c14a27aa134659849ddd9510f136536a48.tar.xz
Merge branch 'ah/maint-grep-double-init'
By Angus Hammond * ah/maint-grep-double-init: grep.c: remove redundant line of code
-rw-r--r--grep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/grep.c b/grep.c
index 190139cfcd..f8ffa46209 100644
--- a/grep.c
+++ b/grep.c
@@ -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.");