aboutsummaryrefslogtreecommitdiff
path: root/sway/commands
diff options
context:
space:
mode:
authorCole Mickens <cole.mickens@gmail.com>2018-11-17 03:23:06 -0800
committerCole Mickens <cole.mickens@gmail.com>2018-11-17 03:23:06 -0800
commitfb6ef83b16955e6ad0e4fb05711c28489863cdf4 (patch)
tree0d8ce9428e2b28d5e7db14080cf4cfa148406f81 /sway/commands
parentcb63321de6b663530a5b27f323363843cd2720a7 (diff)
downloadsway-fb6ef83b16955e6ad0e4fb05711c28489863cdf4.tar.xz
commands/resize: fix grow vars uninitialized
Diffstat (limited to 'sway/commands')
-rw-r--r--sway/commands/resize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/resize.c b/sway/commands/resize.c
index 94ffbbe1..dc4e8000 100644
--- a/sway/commands/resize.c
+++ b/sway/commands/resize.c
@@ -511,7 +511,7 @@ static struct cmd_results *resize_set_tiled(struct sway_container *con,
*/
static struct cmd_results *resize_set_floating(struct sway_container *con,
struct resize_amount *width, struct resize_amount *height) {
- int min_width, max_width, min_height, max_height, grow_width, grow_height;
+ int min_width, max_width, min_height, max_height, grow_width = 0, grow_height = 0;
calculate_constraints(&min_width, &max_width, &min_height, &max_height);
if (width->amount) {