diff options
author | 2016-04-29 10:37:12 -0400 | |
---|---|---|
committer | 2016-04-29 10:37:12 -0400 | |
commit | 0dd1dc05c31f1aada44dc6113b20a616d26f1659 (patch) | |
tree | 514e83ff98ab70ee61682f575a2a8c5c2876d3fd /sway/layout.c | |
parent | Merge pull request #612 from nrechn/master (diff) | |
parent | Fix uninitialized variable (diff) | |
download | sway-0dd1dc05c31f1aada44dc6113b20a616d26f1659.tar.gz sway-0dd1dc05c31f1aada44dc6113b20a616d26f1659.tar.zst sway-0dd1dc05c31f1aada44dc6113b20a616d26f1659.zip |
Merge pull request #613 from mikkeloscar/init-y
Fix uninitialized variable
Diffstat (limited to 'sway/layout.c')
-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) { | |||
626 | geometry.size.h -= (border_bottom + title_bar.size.h); | 626 | geometry.size.h -= (border_bottom + title_bar.size.h); |
627 | container->title_bar_geometry = title_bar; | 627 | container->title_bar_geometry = title_bar; |
628 | } else if (parent->layout == L_STACKED) { | 628 | } else if (parent->layout == L_STACKED) { |
629 | int i, y; | 629 | int i, y = 0; |
630 | for (i = 0; i < parent->children->length; ++i) { | 630 | for (i = 0; i < parent->children->length; ++i) { |
631 | swayc_t *view = parent->children->items[i]; | 631 | swayc_t *view = parent->children->items[i]; |
632 | if (view == container) { | 632 | if (view == container) { |