grep-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grep branch, master, updated. v2.20-63-g423bdd5


From: Paul Eggert
Subject: grep branch, master, updated. v2.20-63-g423bdd5
Date: Thu, 16 Oct 2014 04:41:11 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".

The branch, master has been updated
       via  423bdd5d9405af4836d9359426ceedf24cf18ceb (commit)
      from  2a45f93f4e952f5f27a6eb710854b98a548277b8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=423bdd5d9405af4836d9359426ceedf24cf18ceb


commit 423bdd5d9405af4836d9359426ceedf24cf18ceb
Author: Norihiro Tanaka <address@hidden>
Date:   Thu Oct 16 08:32:57 2014 +0900

    grep: initialize validation_boundary properly before use
    
    * src/grep.c (main): Initialize validation_boundary before pre-searching
    for an empty line.

diff --git a/src/grep.c b/src/grep.c
index dfc0e51..a0f2620 100644
--- a/src/grep.c
+++ b/src/grep.c
@@ -2516,6 +2516,7 @@ main (int argc, char **argv)
   /* We need one byte prior and one after.  */
   char eolbytes[3] = { 0, eolbyte, 0 };
   size_t match_size;
+  validated_boundary = eolbytes + 1;
   skip_empty_lines = ((execute (eolbytes + 1, 1, &match_size, NULL) == 0)
                       == out_invert);
 

-----------------------------------------------------------------------

Summary of changes:
 src/grep.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
grep



reply via email to

[Prev in Thread] Current Thread [Next in Thread]