summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 30fc513)
raw | patch | inline | side by side (parent: 30fc513)
author | Sebastian Harl <sh@tokkee.org> | |
Sun, 8 Mar 2015 21:56:09 +0000 (22:56 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Sun, 8 Mar 2015 21:56:09 +0000 (22:56 +0100) |
src/core/store_expr.c | patch | blob | history |
diff --git a/src/core/store_expr.c b/src/core/store_expr.c
index ddaeccd1f5f0dac21f196e2879d17b226b351dea..d9f6e0462b65c39e5e67c4b787139507c3969e43 100644 (file)
--- a/src/core/store_expr.c
+++ b/src/core/store_expr.c
}
/* Skip over any filtered objects */
- if (iter->filter)
- while ((child = STORE_OBJ(sdb_avltree_iter_peek_next(iter->tree))))
+ if (iter->filter) {
+ while ((child = STORE_OBJ(sdb_avltree_iter_peek_next(iter->tree)))) {
if (sdb_store_matcher_matches(iter->filter, child, NULL))
break;
+ (void)sdb_avltree_iter_get_next(iter->tree);
+ }
+ }
return ret;
}