diff options
author | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-04-29 16:27:46 +0200 |
---|---|---|
committer | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-04-29 16:30:02 +0200 |
commit | b53b15b477a8a210b4ee79c424df424e135d7432 (patch) | |
tree | 514e83ff98ab70ee61682f575a2a8c5c2876d3fd /sway | |
parent | eec09cae0e8d0140f9080a6e08c849422986b9fc (diff) | |
download | sway-b53b15b477a8a210b4ee79c424df424e135d7432.tar.xz |
Fix uninitialized variable
Diffstat (limited to 'sway')
-rw-r--r-- | sway/layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/layout.c b/sway/layout.c index 902a521b..e2e58a77 100644 --- a/sway/layout.c +++ b/sway/layout.c @@ -626,7 +626,7 @@ void update_geometry(swayc_t *container) { geometry.size.h -= (border_bottom + title_bar.size.h); container->title_bar_geometry = title_bar; } else if (parent->layout == L_STACKED) { - int i, y; + int i, y = 0; for (i = 0; i < parent->children->length; ++i) { swayc_t *view = parent->children->items[i]; if (view == container) { |