render_con: initialize int sizes[children]

This fixes a clang-analyzer warning
This commit is contained in:
Sascha Kruse 2012-12-10 19:13:05 +01:00 committed by Michael Stapelberg
parent 4f2922de62
commit 5d4a934864
1 changed files with 1 additions and 0 deletions

View File

@ -202,6 +202,7 @@ void render_con(Con *con, bool render_fullscreen) {
/* precalculate the sizes to be able to correct rounding errors */
int sizes[children];
memset(sizes, 0, children*sizeof(int));
if ((con->layout == L_SPLITH || con->layout == L_SPLITV) && children > 0) {
assert(!TAILQ_EMPTY(&con->nodes_head));
Con *child;