]> git.sur5r.net Git - i3/i3/blobdiff - src/render.c
initialize array to fix clang-analyze warning
[i3/i3] / src / render.c
index 1216241b49af184a8e2ef45cdf997768b6f54af0..c5cb76ba6b120ece38fa6cb54699575866f85de1 100644 (file)
@@ -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;