Explorar o código

Various minor fixes following a pass of cppcheck static analyzer

ocornut %!s(int64=9) %!d(string=hai) anos
pai
achega
81c86dd5e7
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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");