[Scummvm-git-logs] scummvm master -> d726c9d12a840143ddd8a879491513ddea775642
bluegr
noreply at scummvm.org
Tue Dec 1 20:42:00 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
d726c9d12a NGI: Initialize potentially uninitialized variables
Commit: d726c9d12a840143ddd8a879491513ddea775642
https://github.com/scummvm/scummvm/commit/d726c9d12a840143ddd8a879491513ddea775642
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2026-12-01T22:41:44+02:00
Commit Message:
NGI: Initialize potentially uninitialized variables
Changed paths:
engines/ngi/fullpipe/tremble.cpp
engines/ngi/xmlproject.cpp
diff --git a/engines/ngi/fullpipe/tremble.cpp b/engines/ngi/fullpipe/tremble.cpp
index 3c7d9803548..8f8364fc74f 100644
--- a/engines/ngi/fullpipe/tremble.cpp
+++ b/engines/ngi/fullpipe/tremble.cpp
@@ -70,7 +70,7 @@ private:
// CTremble::CTremble: a VIS_OBJ with a scene only shakes in that scene
bool parserCallback_VIS_OBJ(ParserNode *node) {
- uint32 id;
+ uint32 id = 0;
if (node->values.contains("scene") && _ids.findId(node->values["id"], id)) {
uint32 scene;
if (_ids.findId(node->values["scene"], scene))
diff --git a/engines/ngi/xmlproject.cpp b/engines/ngi/xmlproject.cpp
index cae40ee30ed..e1f091caf1b 100644
--- a/engines/ngi/xmlproject.cpp
+++ b/engines/ngi/xmlproject.cpp
@@ -190,10 +190,10 @@ private:
if (!parent)
return false;
if (node->name == "PASSAGE" && parent->name == "PASSAGES") {
- uint32 source;
- uint32 button;
- uint32 destination;
- uint32 hint;
+ uint32 source = 0;
+ uint32 button = 0;
+ uint32 destination = 0;
+ uint32 hint = 0;
if (_ids.findId(node->values.getValOrDefault("srcScene"), source) && _ids.findId(node->values.getValOrDefault("srcHint"), button) &&
_ids.findId(node->values.getValOrDefault("destScene"), destination) && _ids.findId(node->values.getValOrDefault("destHint"), hint)) {
PreloadItem item;
More information about the Scummvm-git-logs
mailing list