[Scummvm-git-logs] scummvm master -> 84ec9e206b99cf422173daf2907bebbd7c8a4f13

neuromancer noreply at scummvm.org
Sat Mar 25 18:01:17 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
84ec9e206b FREESCAPE: fixed potentially unitialized variable


Commit: 84ec9e206b99cf422173daf2907bebbd7c8a4f13
    https://github.com/scummvm/scummvm/commit/84ec9e206b99cf422173daf2907bebbd7c8a4f13
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2023-03-25T19:02:16+01:00

Commit Message:
FREESCAPE: fixed potentially unitialized variable

Changed paths:
    engines/freescape/language/8bitDetokeniser.cpp


diff --git a/engines/freescape/language/8bitDetokeniser.cpp b/engines/freescape/language/8bitDetokeniser.cpp
index 187c46f1b48..6b00ecc926e 100644
--- a/engines/freescape/language/8bitDetokeniser.cpp
+++ b/engines/freescape/language/8bitDetokeniser.cpp
@@ -55,8 +55,8 @@ Common::String detokenise8bitCondition(Common::Array<uint8> &tokenisedCondition,
 		 1};
 
 	detokenisedStream += Common::String::format("CONDITION FLAG: %x\n", tokenisedCondition[0]);
-	Token::Type newConditional;
-	Token::Type oldConditional;
+	Token::Type newConditional = Token::UNKNOWN;
+	Token::Type oldConditional = Token::UNKNOWN;
 
 	while (bytePointer < sizeOfTokenisedContent) {
 		// get the conditional type of the next operation




More information about the Scummvm-git-logs mailing list