Revert "initialize array to fix clang-analyze warning"

This reverts commit 56e0ceb44e.
This commit is contained in:
Michael Stapelberg 2012-12-24 15:28:08 +01:00
parent e11252a7af
commit 4f2922de62
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ void render_con(Con *con, bool render_fullscreen) {
++deco_height; ++deco_height;
/* precalculate the sizes to be able to correct rounding errors */ /* 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) { if ((con->layout == L_SPLITH || con->layout == L_SPLITV) && children > 0) {
assert(!TAILQ_EMPTY(&con->nodes_head)); assert(!TAILQ_EMPTY(&con->nodes_head));
Con *child; Con *child;