aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaiyu <taiyu.len@gmail.com>2015-08-10 15:50:47 -0700
committerTaiyu <taiyu.len@gmail.com>2015-08-10 15:50:47 -0700
commitf7cee6a1b9fc9f43d6ca85bcabf9db14ea58a661 (patch)
tree050a8d63a60e29aa8ba6d0d54bf36a70886d71a5
parentcd9e71fb034547aab4a26c84521abb498ca05db7 (diff)
fixed 'return NULL' in 'void continer_map(...)'
-rw-r--r--sway/container.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/container.c b/sway/container.c
index 8ceb6a30..c637daca 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;
}