aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/move.c
diff options
context:
space:
mode:
authorLibravatar Scott Anderson <scott@anderso.nz>2018-08-27 18:01:17 +1200
committerLibravatar Scott Anderson <scott@anderso.nz>2018-08-27 18:01:17 +1200
commit31c3c8a365f0a2afc3c2c28e7f0913b566fd656b (patch)
tree2947a0c67b309c57400d19d520cced8eceaa273b /sway/commands/move.c
parentHide deprecated wayland functions (diff)
downloadsway-31c3c8a365f0a2afc3c2c28e7f0913b566fd656b.tar.gz
sway-31c3c8a365f0a2afc3c2c28e7f0913b566fd656b.tar.zst
sway-31c3c8a365f0a2afc3c2c28e7f0913b566fd656b.zip
Initialise variable properly
Diffstat (limited to 'sway/commands/move.c')
-rw-r--r--sway/commands/move.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/move.c b/sway/commands/move.c
index d0f6b9ea..7b7cb8f3 100644
--- a/sway/commands/move.c
+++ b/sway/commands/move.c
@@ -52,7 +52,7 @@ static struct sway_container *output_in_direction(const char *direction_string,
52 { "right", WLR_DIRECTION_RIGHT }, 52 { "right", WLR_DIRECTION_RIGHT },
53 }; 53 };
54 54
55 enum wlr_direction direction; 55 enum wlr_direction direction = 0;
56 56
57 for (size_t i = 0; i < sizeof(names) / sizeof(names[0]); ++i) { 57 for (size_t i = 0; i < sizeof(names) / sizeof(names[0]); ++i) {
58 if (strcasecmp(names[i].name, direction_string) == 0) { 58 if (strcasecmp(names[i].name, direction_string) == 0) {