diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2013-12-24 18:03:06 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2013-12-24 18:03:06 +0000 |
commit | 52788c0f63139de170cfe1b3769fa1d5a97d9147 (patch) | |
tree | fb83f2ecdfc686ded390ea2a62dc21f582d7e106 /pcre_compile.c | |
parent | 91b4ccd50a4f6e8427d5eef3f7aadf854776eef0 (diff) | |
download | pcre-52788c0f63139de170cfe1b3769fa1d5a97d9147.tar.gz |
Get rid of some unitialized variable compiler warnings.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1417 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_compile.c')
-rw-r--r-- | pcre_compile.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pcre_compile.c b/pcre_compile.c index d7e21d9..a3d2870 100644 --- a/pcre_compile.c +++ b/pcre_compile.c @@ -6611,7 +6611,10 @@ for (;; ptr++) code[1+LINK_SIZE] = OP_CREF; skipbytes = 1+IMM2_SIZE; - refsign = -1; + refsign = -1; /* => not a number */ + namelen = -1; /* => not a name; must set to avoid warning */ + name = NULL; /* Always set to avoid warning */ + recno = 0; /* Always set to avoid warning */ /* Check for a test for recursion in a named group. */ @@ -6648,7 +6651,6 @@ for (;; ptr++) if (refsign >= 0) { - recno = 0; while (IS_DIGIT(*ptr)) { recno = recno * 10 + (int)(*ptr - CHAR_0); |