[Pcre-svn] [1126] code/trunk/pcretest.c: Fix uninitialised v…

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [1126] code/trunk/pcretest.c: Fix uninitialised variable warnings
Revision: 1126
          http://vcs.pcre.org/viewvc?view=rev&revision=1126
Author:   chpe
Date:     2012-10-18 19:35:01 +0100 (Thu, 18 Oct 2012)


Log Message:
-----------
Fix uninitialised variable warnings

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


Modified: code/trunk/pcretest.c
===================================================================
--- code/trunk/pcretest.c    2012-10-18 18:34:57 UTC (rev 1125)
+++ code/trunk/pcretest.c    2012-10-18 18:35:01 UTC (rev 1126)
@@ -2244,7 +2244,7 @@


static int pchar(pcre_uint32 c, FILE *f)
{
-int n;
+int n = 0;
if (PRINTOK(c))
{
if (f != NULL) fprintf(f, "%c", c);
@@ -4200,6 +4200,7 @@

       new_info(re, NULL, PCRE_INFO_NAMECOUNT, &name_count);
       new_info(re, NULL, PCRE_INFO_NAMEENTRYSIZE, &name_entry_size);
+      real_pcre_size = 0;
 #ifdef SUPPORT_PCRE8
       if (REAL_PCRE_FLAGS(re) & PCRE_MODE8)
         real_pcre_size = sizeof(real_pcre);