GNU bug report logs - #22279
[PATCH] grep: remove duplicate init

Previous Next

Package: grep;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Thu, 31 Dec 2015 07:42:02 UTC

Severity: normal

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: 22279 <at> debbugs.gnu.org
Cc: Paul Eggert <eggert <at> cs.ucla.edu>
Subject: bug#22279: [PATCH] grep: remove duplicate init
Date: Wed, 30 Dec 2015 23:41:10 -0800
* src/grep.c (print_line_middle): Remove duplicate initialization.
---
 src/grep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/grep.c b/src/grep.c
index 696f4ce..03a1bff 100644
--- a/src/grep.c
+++ b/src/grep.c
@@ -1051,7 +1051,7 @@ print_line_middle (char *beg, char *lim,
 {
   size_t match_size;
   size_t match_offset;
-  char *cur = beg;
+  char *cur;
   char *mid = NULL;
   char *b;
 
-- 
2.5.0





This bug report was last modified 9 years and 148 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.