Skip to content

Commit e83038f

Browse files
authored
[GEN][ZH] Fix using uninitialized memory 'window' in GameWindowManagerScript's createGadget (#1127)
1 parent 80e8b23 commit e83038f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Generals/Code/GameEngine/Source/GameClient/GUI/GameWindowManagerScript.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1621,7 +1621,7 @@ static GameWindow *createGadget( char *type,
16211621
WinInstanceData *instData,
16221622
void *data )
16231623
{
1624-
GameWindow *window;
1624+
GameWindow *window = NULL;
16251625

16261626
instData->m_owner = parent;
16271627

GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GameWindowManagerScript.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1629,7 +1629,7 @@ static GameWindow *createGadget( char *type,
16291629
WinInstanceData *instData,
16301630
void *data )
16311631
{
1632-
GameWindow *window;
1632+
GameWindow *window = NULL;
16331633

16341634
instData->m_owner = parent;
16351635

0 commit comments

Comments
 (0)