浏览代码

Fix potentially uninitialized pointer

Ivan Savenko 1 年之前
父节点
当前提交
f03d80628a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/mainmenu/CMainMenu.cpp

+ 1 - 1
client/mainmenu/CMainMenu.cpp

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