From f7cee6a1b9fc9f43d6ca85bcabf9db14ea58a661 Mon Sep 17 00:00:00 2001 From: Taiyu Date: Mon, 10 Aug 2015 15:50:47 -0700 Subject: [PATCH] fixed 'return NULL' in 'void continer_map(...)' --- sway/container.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sway/container.c b/sway/container.c index 8ceb6a304..c637daca7 100644 --- a/sway/container.c +++ b/sway/container.c @@ -3,16 +3,16 @@ void container_map(swayc_t *container, void (*f)(swayc_t *view, void *data), void *data) { if (!container->children) { - return NULL; + return; } int i; for (i = 0; i < container->children->length; ++i) { swayc_t *child = container->children->items[i]; f(child, data); - if(child->children) + if (child->children) { container_map(child, f, data); + } } - return NULL; }