ZVISION: Fix uninitialized scalar field (CID 1257066)

This commit is contained in:
Marisa-Chan 2014-12-19 16:32:27 +06:00
parent efb9355223
commit b96c581881

View File

@ -57,6 +57,9 @@ namespace ZVision {
ActionAdd::ActionAdd(ZVision *engine, int32 slotkey, const Common::String &line) :
ResultAction(engine, slotkey) {
_key = 0;
_value = 0;
sscanf(line.c_str(), "%u,%d", &_key, &_value);
}