From c0699958ce292c38ed994d81a9db68499a3c3b06 Mon Sep 17 00:00:00 2001 From: ocornut Date: Wed, 1 Apr 2015 15:05:06 +0100 Subject: [PATCH] Fix for Coverity static analysis --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index c6c366de..d0bba01d 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -8201,7 +8201,7 @@ void ImFontAtlas::RenderCustomTexData(int pass, void* p_rects) ImVector& rects = *(ImVector*)p_rects; if (pass == 0) { - stbrp_rect r; + stbrp_rect r = { 0 }; r.w = (TEX_DATA_W*2)+1; r.h = TEX_DATA_H+1; rects.push_back(r);