Fix missing token initializer

Fixes https://gitlab.com/kicad/code/kicad/issues/12555
This commit is contained in:
Seth Hillbrand 2022-10-01 12:15:05 -07:00
parent d776e908d0
commit fdf9fcc24d
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}