diff options
author | David Mitchell <davem@iabyn.com> | 2010-08-18 22:11:01 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2010-08-18 22:34:30 +0100 |
commit | acb909b418c9f421785d1bddf729512e3597be18 (patch) | |
tree | cf497e60e7ce552148d6c6d4ad59d32799c8fda6 | |
parent | f4ccb67a0c5b6089da1ebe8b42943cf67d6c087a (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |