diff options
author | taiyu <[email protected]> | 2015-09-22 09:41:32 -0700 |
---|---|---|
committer | taiyu <[email protected]> | 2015-09-22 09:41:32 -0700 |
commit | 494499617090eccf73a0c75380ca884e77548a9f (patch) | |
tree | 46356ae7b43ce6a2ea133771784a072294918f78 /sway/container.c | |
parent | 6c33f8122a3c4bb8fc22129d1d2ad03f535885f7 (diff) | |
parent | 72aaffcf5b96f7d20438191e17c1df7174e52e66 (diff) |
Merge branch 'master' of https://github.com/taiyu-len/sway
merge
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 } 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; |