mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 14:34:07 +01:00
Initialise variable properly
This commit is contained in:
parent
ff86dc0c35
commit
31c3c8a365
@ -52,7 +52,7 @@ static struct sway_container *output_in_direction(const char *direction_string,
|
|||||||
{ "right", WLR_DIRECTION_RIGHT },
|
{ "right", WLR_DIRECTION_RIGHT },
|
||||||
};
|
};
|
||||||
|
|
||||||
enum wlr_direction direction;
|
enum wlr_direction direction = 0;
|
||||||
|
|
||||||
for (size_t i = 0; i < sizeof(names) / sizeof(names[0]); ++i) {
|
for (size_t i = 0; i < sizeof(names) / sizeof(names[0]); ++i) {
|
||||||
if (strcasecmp(names[i].name, direction_string) == 0) {
|
if (strcasecmp(names[i].name, direction_string) == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user