diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-11-17 11:03:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-17 11:03:42 -0500 |
commit | a5cdc293dc8ae6759bd627aaf60d35d9eb4efb04 (patch) | |
tree | 0d8ce9428e2b28d5e7db14080cf4cfa148406f81 /sway/commands/resize.c | |
parent | Merge pull request #3132 from emersion/dispatch-cursor-btn-segfault (diff) | |
parent | commands/resize: fix grow vars uninitialized (diff) | |
download | sway-a5cdc293dc8ae6759bd627aaf60d35d9eb4efb04.tar.gz sway-a5cdc293dc8ae6759bd627aaf60d35d9eb4efb04.tar.zst sway-a5cdc293dc8ae6759bd627aaf60d35d9eb4efb04.zip |
Merge pull request #3143 from colemickens/grow
commands/resize: fix grow vars uninitialized
Diffstat (limited to 'sway/commands/resize.c')
-rw-r--r-- | sway/commands/resize.c | 2 |
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, | |||
511 | */ | 511 | */ |
512 | static struct cmd_results *resize_set_floating(struct sway_container *con, | 512 | static struct cmd_results *resize_set_floating(struct sway_container *con, |
513 | struct resize_amount *width, struct resize_amount *height) { | 513 | struct resize_amount *width, struct resize_amount *height) { |
514 | int min_width, max_width, min_height, max_height, grow_width, grow_height; | 514 | int min_width, max_width, min_height, max_height, grow_width = 0, grow_height = 0; |
515 | calculate_constraints(&min_width, &max_width, &min_height, &max_height); | 515 | calculate_constraints(&min_width, &max_width, &min_height, &max_height); |
516 | 516 | ||
517 | if (width->amount) { | 517 | if (width->amount) { |