diff --git a/Generals/Code/GameEngine/Source/Common/INI/INI.cpp b/Generals/Code/GameEngine/Source/Common/INI/INI.cpp index ec57397162..5fa23ac345 100644 --- a/Generals/Code/GameEngine/Source/Common/INI/INI.cpp +++ b/Generals/Code/GameEngine/Source/Common/INI/INI.cpp @@ -725,6 +725,7 @@ AsciiString INI::getNextQuotedAsciiString() { AsciiString result; char buff[INI_MAX_CHARS_PER_LINE]; + buff[0] = '\0'; const char *token = getNextTokenOrNull(); // if null, just leave an empty string if (token != NULL) diff --git a/GeneralsMD/Code/GameEngine/Source/Common/INI/INI.cpp b/GeneralsMD/Code/GameEngine/Source/Common/INI/INI.cpp index 1634d019ae..bc9569238f 100644 --- a/GeneralsMD/Code/GameEngine/Source/Common/INI/INI.cpp +++ b/GeneralsMD/Code/GameEngine/Source/Common/INI/INI.cpp @@ -717,6 +717,7 @@ AsciiString INI::getNextQuotedAsciiString() { AsciiString result; char buff[INI_MAX_CHARS_PER_LINE]; + buff[0] = '\0'; const char *token = getNextTokenOrNull(); // if null, just leave an empty string if (token != NULL)