Code

store: Apply iterator expressions to the iterated objects.
authorSebastian Harl <sh@tokkee.org>
Sun, 8 Mar 2015 21:52:49 +0000 (22:52 +0100)
committerSebastian Harl <sh@tokkee.org>
Sun, 8 Mar 2015 21:52:49 +0000 (22:52 +0100)
src/core/store_expr.c

index 11370bb438455f6fcf3b08a34a4bcfa5607a98af..ddaeccd1f5f0dac21f196e2879d17b226b351dea 100644 (file)
@@ -411,7 +411,7 @@ sdb_store_expr_iter_get_next(sdb_store_expr_iter_t *iter)
                                        && (! sdb_store_matcher_matches(iter->filter, child, NULL)))
                                continue;
 
-                       if (sdb_store_expr_eval(iter->expr, iter->obj, &ret, iter->filter))
+                       if (sdb_store_expr_eval(iter->expr, child, &ret, iter->filter))
                                return null;
                        break;
                }