From 6b9068db0f61b64b40ed1d99a1c6488ffbe85ca8 Mon Sep 17 00:00:00 2001 From: Konstantinos Margaritis Date: Wed, 17 Jan 2024 17:16:02 +0200 Subject: [PATCH] initialize variable --- src/nfa/mcclellancompile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",