ZVISION: Fix uninitialized scalar field (CID 1257056)
This commit is contained in:
parent
deea4ef62c
commit
8c896f5da4
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue