]> git.sur5r.net Git - i3/i3/commitdiff
Revert "initialize array to fix clang-analyze warning"
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 24 Dec 2012 14:28:08 +0000 (15:28 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 24 Dec 2012 14:28:08 +0000 (15:28 +0100)
This reverts commit 56e0ceb44e0745b1670952be8f324783abdb28c5.

src/render.c

index c5cb76ba6b120ece38fa6cb54699575866f85de1..1216241b49af184a8e2ef45cdf997768b6f54af0 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] = { 0 };
+    int sizes[children];
     if ((con->layout == L_SPLITH || con->layout == L_SPLITV) && children > 0) {
         assert(!TAILQ_EMPTY(&con->nodes_head));
         Con *child;