[Pcre-svn] [1211] code/trunk: Fix pcretest -C pcre8/pcre16 b…

Kezdőlap
Üzenet törlése
Szerző: Subversion repository
Dátum:  
Címzett: pcre-svn
Tárgy: [Pcre-svn] [1211] code/trunk: Fix pcretest -C pcre8/pcre16 bug.
Revision: 1211
          http://vcs.pcre.org/viewvc?view=rev&revision=1211
Author:   ph10
Date:     2012-11-07 17:02:03 +0000 (Wed, 07 Nov 2012)


Log Message:
-----------
Fix pcretest -C pcre8/pcre16 bug.

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


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2012-11-07 16:58:13 UTC (rev 1210)
+++ code/trunk/ChangeLog    2012-11-07 17:02:03 UTC (rev 1211)
@@ -149,7 +149,10 @@


31. Add support for GCC's visibility feature to hide internal functions.

+32. Running "pcretest -C pcre8" or "pcretest -C pcre16" gave a spurious error
+    "unknown -C option" after outputting 0 or 1.


+
Version 8.31 06-July-2012
-------------------------


Modified: code/trunk/pcretest.c
===================================================================
--- code/trunk/pcretest.c    2012-11-07 16:58:13 UTC (rev 1210)
+++ code/trunk/pcretest.c    2012-11-07 17:02:03 UTC (rev 1211)
@@ -3142,6 +3142,7 @@
         printf("0\n");
         yield = 0;
 #endif
+        goto EXIT;
         }
       else if (strcmp(argv[op + 1], "pcre16") == 0)
         {
@@ -3152,6 +3153,7 @@
         printf("0\n");
         yield = 0;
 #endif
+        goto EXIT;
         }
       else if (strcmp(argv[op + 1], "pcre32") == 0)
         {