summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2010-08-18 22:11:01 +0100
committerDavid Mitchell <davem@iabyn.com>2010-08-18 22:34:30 +0100
commitacb909b418c9f421785d1bddf729512e3597be18 (patch)
treecf497e60e7ce552148d6c6d4ad59d32799c8fda6
parentf4ccb67a0c5b6089da1ebe8b42943cf67d6c087a (diff)
downloadperl-acb909b418c9f421785d1bddf729512e3597be18.tar.gz
fix 'might be used uninitialized' in S_regmatch
Strictly speaking charid would only get used uninitialized in debugging output with a trie state machine that has no entries, but initialise it to zero just to keep everyone happy.
-rw-r--r--regexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regexec.c b/regexec.c
index ef5563505f..dd4ec41f95 100644
--- a/regexec.c
+++ b/regexec.c
@@ -3169,7 +3169,7 @@ S_regmatch(pTHX_ regmatch_info *reginfo, regnode *prog)
while ( state && uc <= (U8*)PL_regeol ) {
U32 base = trie->states[ state ].trans.base;
UV uvc = 0;
- U16 charid;
+ U16 charid = 0;
U16 wordnum;
wordnum = trie->states[ state ].wordnum;