[Pcre-svn] [323] code/trunk: Remove a line of dead code, id…

Página Inicial
Delete this message
Autor: Subversion repository
Data:  
Para: pcre-svn
Assunto: [Pcre-svn] [323] code/trunk: Remove a line of dead code, identified by coverity and reported by Nuno Lopes.
Revision: 323
          http://vcs.pcre.org/viewvc?view=rev&revision=323
Author:   ph10
Date:     2008-03-05 17:23:42 +0000 (Wed, 05 Mar 2008)


Log Message:
-----------
Remove a line of dead code, identified by coverity and reported by Nuno Lopes.

Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/pcre_compile.c


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2008-03-05 17:14:08 UTC (rev 322)
+++ code/trunk/ChangeLog    2008-03-05 17:23:42 UTC (rev 323)
@@ -11,6 +11,9 @@
 2.  Applied Craig's patch to pcrecpp.cc to restore ABI compatibility with
     pre-7.6 versions, which defined a global no_arg variable instead of putting
     it in the RE class.
+    
+3.  Remove a line of dead code, identified by coverity and reported by Nuno 
+    Lopes. 



Version 7.6 28-Jan-08

Modified: code/trunk/pcre_compile.c
===================================================================
--- code/trunk/pcre_compile.c    2008-03-05 17:14:08 UTC (rev 322)
+++ code/trunk/pcre_compile.c    2008-03-05 17:23:42 UTC (rev 323)
@@ -2113,7 +2113,6 @@
   /* For OP_NOT, "item" must be a single-byte character. */


case OP_NOT:
- if (next < 0) return FALSE; /* Not a character */
if (item == next) return TRUE;
if ((options & PCRE_CASELESS) == 0) return FALSE;
#ifdef SUPPORT_UTF8