From 81c86dd5e7a0e951b6d9e60860f8994fab66a4fa Mon Sep 17 00:00:00 2001 From: ocornut Date: Wed, 30 Dec 2015 11:55:37 +0100 Subject: [PATCH] Various minor fixes following a pass of cppcheck static analyzer --- imgui_demo.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui_demo.cpp b/imgui_demo.cpp index 94a5b52a1..8f782ac27 100644 --- a/imgui_demo.cpp +++ b/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");