initialize array to fix clang-analyze warning
This commit is contained in:
parent
9ae73b7a2a
commit
56e0ceb44e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue