Skip to content

Commit

Permalink
SCI: Inhibit spurious GCC warnings in script patching code.
Browse files Browse the repository at this point in the history
The two relevant variables upon inspection of the current code should
not be used uninitialized as per the compiler linter warning, but
removing this by adding a zero initialization is simple.
It is also good practice and should prevent future issues if the code
is modified.
  • Loading branch information
digitall committed Apr 18, 2014
1 parent de3f818 commit 4598b3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/sci/engine/script_patches.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2668,8 +2668,8 @@ void ScriptPatcher::initSignature(const SciScriptPatcherEntry *patchTable, bool
uint16 curWord;
uint16 curCommand;
uint32 curValue;
byte byte1;
byte byte2;
byte byte1 = 0;
byte byte2 = 0;
int patchEntryCount = 0;

// Count entries and allocate runtime data
Expand Down

0 comments on commit 4598b3b

Please sign in to comment.