From 5e9673d83c1e344da6b5e9bc478660485449722e Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 30 Jun 2019 15:25:49 +0300 Subject: CRYOMNI3D: Silence false positive warnings about uninitialized variables --- engines/cryomni3d/versailles/documentation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') 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); -- cgit v1.2.3