From 07d0f566965785a70d85fca66587a02e1ee75b9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 27 Jun 2015 16:46:44 -0700 Subject: [PATCH] Fixed warning. --- 3rdparty/ocornut-imgui/imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3rdparty/ocornut-imgui/imgui.cpp b/3rdparty/ocornut-imgui/imgui.cpp index 405b717f1..534572aec 100644 --- a/3rdparty/ocornut-imgui/imgui.cpp +++ b/3rdparty/ocornut-imgui/imgui.cpp @@ -7264,7 +7264,7 @@ static bool InputTextEx(const char* label, char* buf, size_t buf_size, const ImV // Count lines + find lines numbers of cursor and select_start int matches_remaining = 0; int matches_line_no[2] = { -1, -999 }; - const ImWchar* matches_ptr[2]; + const ImWchar* matches_ptr[2] = {}; matches_ptr[0] = text_begin + edit_state.StbState.cursor; matches_remaining++; if (edit_state.StbState.select_start != edit_state.StbState.select_end) {