diff --git a/pcbnew/pcb_expr_evaluator.h b/pcbnew/pcb_expr_evaluator.h index 4c3d91a175..1b0aefd2f8 100644 --- a/pcbnew/pcb_expr_evaluator.h +++ b/pcbnew/pcb_expr_evaluator.h @@ -40,6 +40,12 @@ class PCB_EXPR_VAR_REF; class PCB_EXPR_UCODE : public LIBEVAL::UCODE { public: + PCB_EXPR_UCODE() + { + m_items[0] = nullptr; + m_items[1] = nullptr; + } + virtual LIBEVAL::VAR_REF* createVarRef( LIBEVAL::COMPILER *aCompiler, const std::string& aVar, const std::string& aField ) override;