git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Remove redundant line of code from grep.c
@ 2012-05-06 18:17 Angus Hammond
  0 siblings, 0 replies; only message in thread
From: Angus Hammond @ 2012-05-06 18:17 UTC (permalink / raw)
  To: git; +Cc: Angus Hammond

Remove double initialisation of p in grep_expr.
Signed-off-by: Angus Hammond <angusgh@gmail.com>

---
 grep.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grep.c b/grep.c
index 190139c..f8ffa46 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.");
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-05-06 18:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-06 18:17 [PATCH] Remove redundant line of code from grep.c Angus Hammond

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).