Skip to content

Commit d7f7b37

Browse files
authored
[GEN][ZH] Fix uninitialized variable read in ConnectionManager::allCommandsReady() (#792)
1 parent f49b44f commit d7f7b37

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Generals/Code/GameEngine/Source/GameNetwork/ConnectionManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1554,7 +1554,7 @@ Int commandsReadyDebugSpewage = 0;
15541554
*/
15551555
Bool ConnectionManager::allCommandsReady(UnsignedInt frame, Bool justTesting /* = FALSE */) {
15561556
Bool retval = TRUE;
1557-
FrameDataReturnType frameRetVal;
1557+
FrameDataReturnType frameRetVal = FRAMEDATA_NOTREADY;
15581558
// retval = FALSE; // ****for testing purposes only!!!!!!****
15591559
Int i = 0;
15601560
for (; (i < MAX_SLOTS) && retval; ++i) {

GeneralsMD/Code/GameEngine/Source/GameNetwork/ConnectionManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1554,7 +1554,7 @@ Int commandsReadyDebugSpewage = 0;
15541554
*/
15551555
Bool ConnectionManager::allCommandsReady(UnsignedInt frame, Bool justTesting /* = FALSE */) {
15561556
Bool retval = TRUE;
1557-
FrameDataReturnType frameRetVal;
1557+
FrameDataReturnType frameRetVal = FRAMEDATA_NOTREADY;
15581558
// retval = FALSE; // ****for testing purposes only!!!!!!****
15591559
Int i = 0;
15601560
for (; (i < MAX_SLOTS) && retval; ++i) {

0 commit comments

Comments
 (0)