From fdf9fcc24d861255233ea8f0c76c95d877605d0b Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sat, 1 Oct 2022 12:15:05 -0700 Subject: [PATCH] Fix missing token initializer Fixes https://gitlab.com/kicad/code/kicad/issues/12555 --- common/libeval/numeric_evaluator.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/common/libeval/numeric_evaluator.cpp b/common/libeval/numeric_evaluator.cpp index 8f50bd3072..10d90523d3 100644 --- a/common/libeval/numeric_evaluator.cpp +++ b/common/libeval/numeric_evaluator.cpp @@ -164,6 +164,7 @@ void NUMERIC_EVALUATOR::newString( const wxString& aString ) m_token.pos = 0; m_token.input = aString.mb_str(); m_token.token = new char[m_token.outputLen](); + m_token.token[0] = '0'; m_parseFinished = false; }