Преглед изворни кода

Various minor fixes following a pass of cppcheck static analyzer

ocornut пре 9 година
родитељ
комит
81c86dd5e7
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      imgui_demo.cpp

+ 1 - 0
imgui_demo.cpp

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