ZVISION: Fix uninitialized scalar field (CID 1257056)

This commit is contained in:
Marisa-Chan 2014-12-19 15:42:19 +06:00
parent deea4ef62c
commit 8c896f5da4

View file

@ -71,6 +71,8 @@ bool ActionAdd::execute() {
ActionAssign::ActionAssign(ZVision *engine, int32 slotkey, const Common::String &line) :
ResultAction(engine, slotkey) {
_key = 0;
char buf[64];
memset(buf, 0, 64);
sscanf(line.c_str(), "%u, %s", &_key, buf);