[Scummvm-cvs-logs] scummvm-tools master -> 4ef90c08b4b6bd4dc2e5aa10f614389c08484da0
criezy
criezy at scummvm.org
Tue Jan 5 01:03:08 CET 2016
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-tools' repo located at https://github.com/scummvm/scummvm-tools .
Summary:
4ef90c08b4 TOOLS: initialise variables to silence warnings
Commit: 4ef90c08b4b6bd4dc2e5aa10f614389c08484da0
https://github.com/scummvm/scummvm-tools/commit/4ef90c08b4b6bd4dc2e5aa10f614389c08484da0
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2016-01-05T00:01:45Z
Commit Message:
TOOLS: initialise variables to silence warnings
I was getting a warning with clang that two variables could be used
uninitialised because it did not realize that engine cannot be
something other than 1 or 2.
Changed paths:
engines/kyra/dekyra.cpp
diff --git a/engines/kyra/dekyra.cpp b/engines/kyra/dekyra.cpp
index 65a411a..3387442 100644
--- a/engines/kyra/dekyra.cpp
+++ b/engines/kyra/dekyra.cpp
@@ -98,8 +98,8 @@ int main(int argc, char** argv) {
ScriptData scriptData;
memset(&scriptData, 0, sizeof(ScriptData));
- OpcodeEntry *opcodes;
- int opcodesSize;
+ OpcodeEntry *opcodes = 0;
+ int opcodesSize = 0;
if (engine == 1) {
getOpcodesV1(opcodes, opcodesSize);
More information about the Scummvm-git-logs
mailing list