diff options
Diffstat (limited to 'sway/container.c')
-rw-r--r-- | sway/container.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/container.c b/sway/container.c index 85b169a1..4c523827 100644 --- a/sway/container.c +++ b/sway/container.c | |||
@@ -405,7 +405,7 @@ swayc_t *swayc_by_test(swayc_t *container, bool (*test)(swayc_t *view, void *dat | |||
405 | } | 405 | } |
406 | 406 | ||
407 | static bool test_name(swayc_t *view, void *data) { | 407 | static bool test_name(swayc_t *view, void *data) { |
408 | if (!view && !view->name) { | 408 | if (!view || !view->name) { |
409 | return false; | 409 | return false; |
410 | } | 410 | } |
411 | return strcmp(view->name, data) == 0; | 411 | return strcmp(view->name, data) == 0; |