grep-commit
[Top][All Lists]
Advanced

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

grep branch, master, updated. v2.10-6-gcb6fe0a


From: Jim Meyering
Subject: grep branch, master, updated. v2.10-6-gcb6fe0a
Date: Sun, 20 Nov 2011 17:49:01 +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  cb6fe0ad60076c747d4d752e52fc00b6263f34fd (commit)
      from  a46a6acf2f8c052c3fcf3baaa1932ef3335a96b9 (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=cb6fe0ad60076c747d4d752e52fc00b6263f34fd


commit cb6fe0ad60076c747d4d752e52fc00b6263f34fd
Author: Jim Meyering <address@hidden>
Date:   Sun Nov 20 18:47:55 2011 +0100

    maint: consistently use NULL, not 0, when comparing pointers
    
    * src/dfa.c (dfaanalyze): Compare trans[s] with NULL, not 0.

diff --git a/src/dfa.c b/src/dfa.c
index dc89a76..e28726d 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -3248,7 +3248,7 @@ dfaexec (struct dfa *d, char const *begin, char *end,
   for (;;)
     {
       if (d->mb_cur_max > 1)
-        while ((t = trans[s]))
+        while ((t = trans[s]) != NULL)
           {
             if (p > buf_end)
               break;
@@ -3281,10 +3281,10 @@ dfaexec (struct dfa *d, char const *begin, char *end,
           }
       else
         {
-          while ((t = trans[s]) != 0)
+          while ((t = trans[s]) != NULL)
             {
               s1 = t[*p++];
-              if ((t = trans[s1]) == 0)
+              if ((t = trans[s1]) == NULL)
                 {
                   int tmp = s; s = s1; s1 = tmp; /* swap */
                   break;

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

Summary of changes:
 src/dfa.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
grep



reply via email to

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