commit a5cdc293dc8ae6759bd627aaf60d35d9eb4efb04
parent cb63321de6b663530a5b27f323363843cd2720a7
Author: Drew DeVault <sir@cmpwn.com>
Date: Sat, 17 Nov 2018 11:03:42 -0500
Merge pull request #3143 from colemickens/grow
commands/resize: fix grow vars uninitialized
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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) {