From: Konstantinos Margaritis Date: Wed, 17 Jan 2024 15:16:02 +0000 (+0200) Subject: initialize variable X-Git-Tag: vectorscan/5.4.12^2~75^2~20 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=6b9068db0f61b64b40ed1d99a1c6488ffbe85ca8;p=thirdparty%2Fvectorscan.git initialize variable --- diff --git a/src/nfa/mcclellancompile.cpp b/src/nfa/mcclellancompile.cpp index 3f217ed3..36545e98 100644 --- a/src/nfa/mcclellancompile.cpp +++ b/src/nfa/mcclellancompile.cpp @@ -620,7 +620,7 @@ bytecode_ptr mcclellanCompile16(dfa_info &info, const CompileContext &cc, u8 alphaShift = info.getAlphaShift(); assert(alphaShift <= 8); - u16 count_real_states; + u16 count_real_states{0}; u16 wide_limit; if (!allocateFSN16(info, &count_real_states, &wide_limit)) { DEBUG_PRINTF("failed to allocate state numbers, %zu states total\n",