Przeglądaj źródła

Fix potentially uninitialized pointer

Ivan Savenko 1 rok temu
rodzic
commit
f03d80628a
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      client/mainmenu/CMainMenu.cpp

+ 1 - 1
client/mainmenu/CMainMenu.cpp

@@ -60,7 +60,7 @@
 #include "../../lib/CRandomGenerator.h"
 
 std::shared_ptr<CMainMenu> CMM;
-ISelectionScreenInfo * SEL;
+ISelectionScreenInfo * SEL = nullptr;
 
 static void do_quit()
 {