From 56e0ceb44e0745b1670952be8f324783abdb28c5 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 24 Dec 2012 15:19:20 +0100 Subject: [PATCH] initialize array to fix clang-analyze warning --- src/render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render.c b/src/render.c index 1216241b..c5cb76ba 100644 --- a/src/render.c +++ b/src/render.c @@ -201,7 +201,7 @@ void render_con(Con *con, bool render_fullscreen) { ++deco_height; /* precalculate the sizes to be able to correct rounding errors */ - int sizes[children]; + int sizes[children] = { 0 }; if ((con->layout == L_SPLITH || con->layout == L_SPLITV) && children > 0) { assert(!TAILQ_EMPTY(&con->nodes_head)); Con *child; -- 2.39.5