initialize array to fix clang-analyze warning

This commit is contained in:
Michael Stapelberg 2012-12-24 15:19:20 +01:00
parent 9ae73b7a2a
commit 56e0ceb44e
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;
/* 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;