src/gui/widget/menue_target.h: ensure init of valueStringTmp

This commit is contained in:
2018-03-22 21:10:49 +01:00
parent 2f73bd58a1
commit 8963ba6f1e

View File

@@ -31,7 +31,7 @@ class CMenuTarget
std::string *valueString;
std::string valueStringTmp;
public:
CMenuTarget(){ valueString = &valueStringTmp; }
CMenuTarget(){ valueStringTmp = std::string(); valueString = &valueStringTmp; }
virtual ~CMenuTarget(){}
virtual void hide(){}
virtual int exec(CMenuTarget* parent, const std::string & actionKey) = 0;