render_con: initialize int sizes[children]
This fixes a clang-analyzer warning
This commit is contained in:
parent
4f2922de62
commit
5d4a934864
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue