From d2e2b04bfd505561981c9137bfc493bb8effe63e Mon Sep 17 00:00:00 2001 From: taiyu Date: Fri, 18 Sep 2015 06:52:04 -0700 Subject: minor fix --- sway/container.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway/container.c') 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 } static bool test_name(swayc_t *view, void *data) { - if (!view && !view->name) { + if (!view || !view->name) { return false; } return strcmp(view->name, data) == 0; -- cgit v1.2.3