Fix crash due to uninitialised variable.

This commit is contained in:
Jeff Young 2020-07-23 17:20:32 +01:00
parent ac6ceb84bf
commit b60303efdb
1 changed files with 6 additions and 0 deletions

View File

@ -40,6 +40,12 @@ class PCB_EXPR_VAR_REF;
class PCB_EXPR_UCODE : public LIBEVAL::UCODE class PCB_EXPR_UCODE : public LIBEVAL::UCODE
{ {
public: public:
PCB_EXPR_UCODE()
{
m_items[0] = nullptr;
m_items[1] = nullptr;
}
virtual LIBEVAL::VAR_REF* createVarRef( LIBEVAL::COMPILER *aCompiler, virtual LIBEVAL::VAR_REF* createVarRef( LIBEVAL::COMPILER *aCompiler,
const std::string& aVar, const std::string& aVar,
const std::string& aField ) override; const std::string& aField ) override;