[Pcre-svn] [175] code/trunk/src/pcre2test.c: Small code tidy…

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [175] code/trunk/src/pcre2test.c: Small code tidy.
Revision: 175
          http://www.exim.org/viewvc/pcre2?view=rev&revision=175
Author:   ph10
Date:     2014-12-15 11:17:05 +0000 (Mon, 15 Dec 2014)


Log Message:
-----------
Small code tidy.

Modified Paths:
--------------
    code/trunk/src/pcre2test.c


Modified: code/trunk/src/pcre2test.c
===================================================================
--- code/trunk/src/pcre2test.c    2014-12-14 17:17:06 UTC (rev 174)
+++ code/trunk/src/pcre2test.c    2014-12-15 11:17:05 UTC (rev 175)
@@ -4141,15 +4141,15 @@


   for (i = 0; i < cb->capture_top * 2; i += 2)
     {
-    if (cb->offset_vector[i] == PCRE2_UNSET)
-      fprintf(f, "%2d: <unset>\n", i/2);
+    fprintf(f, "%2d: ", i/2);
+    if (cb->offset_vector[i] == PCRE2_UNSET) 
+      fprintf(f, "<unset>");
     else
       {
-      fprintf(f, "%2d: ", i/2);
       PCHARSV(cb->subject, cb->offset_vector[i],
         cb->offset_vector[i+1] - cb->offset_vector[i], utf, f);
-      fprintf(f, "\n");
       }
+    fprintf(f, "\n");
     }
   }