]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
initialize variable
authorKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Wed, 17 Jan 2024 15:16:02 +0000 (17:16 +0200)
committerKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Wed, 17 Jan 2024 15:16:02 +0000 (17:16 +0200)
src/nfa/mcclellancompile.cpp

index 3f217ed3c6c967a5fecc575520d16b354ada2364..36545e987d29bd025f00836f061e895f47ecec04 100644 (file)
@@ -620,7 +620,7 @@ bytecode_ptr<NFA> 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",