aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarisa-Chan2014-12-19 15:42:19 +0600
committerMarisa-Chan2014-12-19 16:00:57 +0600
commit8c896f5da4eaa4cd95f9ff4c60efa43542cfe557 (patch)
tree96a3f6a04e20502a194caa8ff7dada3e1ff3affc
parentdeea4ef62c1eda0a3cba45b2f9e23be6338f52ca (diff)
downloadscummvm-rg350-8c896f5da4eaa4cd95f9ff4c60efa43542cfe557.tar.gz
scummvm-rg350-8c896f5da4eaa4cd95f9ff4c60efa43542cfe557.tar.bz2
scummvm-rg350-8c896f5da4eaa4cd95f9ff4c60efa43542cfe557.zip
ZVISION: Fix uninitialized scalar field (CID 1257056)
-rw-r--r--engines/zvision/scripting/actions.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/zvision/scripting/actions.cpp b/engines/zvision/scripting/actions.cpp
index 10122f556d..1d9b4d7be1 100644
--- a/engines/zvision/scripting/actions.cpp
+++ b/engines/zvision/scripting/actions.cpp
@@ -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);