aboutsummaryrefslogtreecommitdiffstats
path: root/sway/container.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/container.c')
-rw-r--r--sway/container.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/container.c b/sway/container.c
index ef0e6c55..d6bcc4c2 100644
--- a/sway/container.c
+++ b/sway/container.c
@@ -403,7 +403,7 @@ swayc_t *swayc_by_test(swayc_t *container, bool (*test)(swayc_t *view, void *dat
403} 403}
404 404
405static bool test_name(swayc_t *view, void *data) { 405static bool test_name(swayc_t *view, void *data) {
406 if (!view && !view->name) { 406 if (!view || !view->name) {
407 return false; 407 return false;
408 } 408 }
409 return strcmp(view->name, data) == 0; 409 return strcmp(view->name, data) == 0;