From: Michael Stapelberg Date: Mon, 24 Dec 2012 14:19:20 +0000 (+0100) Subject: initialize array to fix clang-analyze warning X-Git-Tag: 4.5~92 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=56e0ceb44e0745b1670952be8f324783abdb28c5;p=i3%2Fi3 initialize array to fix clang-analyze warning --- 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;