summaryrefslogtreecommitdiff
path: root/pcretest.c
diff options
context:
space:
mode:
authorchpe <chpe@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-10-18 18:35:01 +0000
committerchpe <chpe@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-10-18 18:35:01 +0000
commit78738567a83355973d1429a6fb7613fb08856fff (patch)
tree5481c3fcf4fd97ee0282cffccc3173dbcf8e69a6 /pcretest.c
parent8b31f79fdbf698cf8743b6bcac264efdacb19ada (diff)
downloadpcre-78738567a83355973d1429a6fb7613fb08856fff.tar.gz
Fix uninitialised variable warnings
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1126 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcretest.c')
-rw-r--r--pcretest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pcretest.c b/pcretest.c
index 9d24be6..1377d5c 100644
--- a/pcretest.c
+++ b/pcretest.c
@@ -2244,7 +2244,7 @@ return(result);
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 @@ while (!done)
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);