{"thread":{"id":"30448","subject":"[PATCH] Remove redundant line of code from grep.c","startedAt":"2012-05-06T18:17:15Z","lastAt":"2012-05-06T18:17:15Z","messageCount":1,"participants":["Angus Hammond"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"190931","messageId":"1336328235-27387-1-git-send-email-angusgh@gmail.com","threadId":"30448","inReplyTo":null,"subject":"[PATCH] Remove redundant line of code from grep.c","fromName":"Angus Hammond","fromEmail":"angusgh@gmail.com","sentAt":"2012-05-06T18:17:15Z","receivedAt":"2012-05-06T18:17:15Z","isPatch":true,"sender":{"key":"angusgh@gmail.com","avatar":"https://avatars.githubusercontent.com/u/1839397?v=4"},"body":"Remove double initialisation of p in grep_expr.\nSigned-off-by: Angus Hammond <angusgh@gmail.com>\n\n---\n grep.c |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/grep.c b/grep.c\nindex 190139c..f8ffa46 100644\n--- a/grep.c\n+++ b/grep.c\n@@ -318,7 +318,7 @@ static struct grep_expr *prep_header_patterns(struct grep_opt *opt)\n \n \tif (!opt->header_list)\n \t\treturn NULL;\n-\tp = opt->header_list;\n+\n \tfor (p = opt->header_list; p; p = p->next) {\n \t\tif (p->token != GREP_PATTERN_HEAD)\n \t\t\tdie(\"bug: a non-header pattern in grep header list.\");\n-- \n1.7.9.5\n"}]}