[Pcre-svn] [356] code/trunk: Minor bugfix in pcrecpp.cc.

Página Inicial
Delete this message
Autor: Subversion repository
Data:  
Para: pcre-svn
Assunto: [Pcre-svn] [356] code/trunk: Minor bugfix in pcrecpp.cc.
Revision: 356
          http://vcs.pcre.org/viewvc?view=rev&revision=356
Author:   ph10
Date:     2008-07-08 15:14:34 +0100 (Tue, 08 Jul 2008)


Log Message:
-----------
Minor bugfix in pcrecpp.cc.

Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/pcrecpp.cc


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2008-07-07 17:45:23 UTC (rev 355)
+++ code/trunk/ChangeLog    2008-07-08 14:14:34 UTC (rev 356)
@@ -26,6 +26,8 @@
     a UTF-8 string, even in non-UTF-8 mode. Now it generates a single byte in
     non-UTF-8 mode. If the value is greater than 255, it gives a warning about
     truncation.   
+    
+6.  Minor bugfix in pcrecpp.cc (change "" == ... to NULL == ...). 



Version 7.7 07-May-08

Modified: code/trunk/pcrecpp.cc
===================================================================
--- code/trunk/pcrecpp.cc    2008-07-07 17:45:23 UTC (rev 355)
+++ code/trunk/pcrecpp.cc    2008-07-08 14:14:34 UTC (rev 356)
@@ -372,7 +372,7 @@
     else if (newline == -2)
       newline_mode = PCRE_NEWLINE_ANYCRLF;
     else
-      assert("" == "Unexpected return value from pcre_config(NEWLINE)");
+      assert(NULL == "Unexpected return value from pcre_config(NEWLINE)");
   }
   return newline_mode;
 }