Przeglądaj źródła

Various minor fixes following a pass of cppcheck static analyzer

ocornut 9 lat temu
rodzic
commit
81c86dd5e7
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      imgui_demo.cpp

+ 1 - 0
imgui_demo.cpp

@@ -1871,6 +1871,7 @@ struct ExampleAppConsole
     ExampleAppConsole()
     ExampleAppConsole()
     {
     {
         ClearLog();
         ClearLog();
+        memset(InputBuf, 0, sizeof(InputBuf));
         HistoryPos = -1;
         HistoryPos = -1;
         Commands.push_back("HELP");
         Commands.push_back("HELP");
         Commands.push_back("HISTORY");
         Commands.push_back("HISTORY");