aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2019-06-30 15:25:49 +0300
committerFilippos Karapetis2019-06-30 15:25:49 +0300
commit5e9673d83c1e344da6b5e9bc478660485449722e (patch)
tree53795bd3ea9310ae293d3bdf7e71f16782678dc5
parent2fd416b0ac9750916e388e95429700275f98113a (diff)
downloadscummvm-rg350-5e9673d83c1e344da6b5e9bc478660485449722e.tar.gz
scummvm-rg350-5e9673d83c1e344da6b5e9bc478660485449722e.tar.bz2
scummvm-rg350-5e9673d83c1e344da6b5e9bc478660485449722e.zip
CRYOMNI3D: Silence false positive warnings about uninitialized variables
-rw-r--r--engines/cryomni3d/versailles/documentation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/cryomni3d/versailles/documentation.cpp b/engines/cryomni3d/versailles/documentation.cpp
index 4122b44f33..9e90e0089d 100644
--- a/engines/cryomni3d/versailles/documentation.cpp
+++ b/engines/cryomni3d/versailles/documentation.cpp
@@ -105,7 +105,7 @@ void Versailles_Documentation::init(const Sprites *sprites, FontManager *fontMan
allDocsFile.close();
const char *patterns[] = { "FICH=", nullptr };
- RecordInfo record;
+ RecordInfo record = { 0, 0, 0 };
char *currentPos = allDocs;
char *lastRecordName = nullptr;
@@ -1823,7 +1823,7 @@ char *Versailles_Documentation::getDocPartAddress(char *start, char *end, const
}
char *foundPos = nullptr;
const char *pattern;
- uint patternLen;
+ uint patternLen = 0;
for (const char **patternP = patterns; *patternP && !foundPos; patternP++) {
pattern = *patternP;
patternLen = strlen(pattern);