diff --git a/libdnf/sack/query.cpp b/libdnf/sack/query.cpp index 793777033..6eecfa506 100644 --- a/libdnf/sack/query.cpp +++ b/libdnf/sack/query.cpp @@ -2313,7 +2313,7 @@ Query::Impl::apply() if (!result) initResult(); map_init(&m, pool->nsolvables); - assert(m.size == result->getMap()->size); + map_grow(result->getMap(), pool->nsolvables); for (auto f : filters) { map_empty(&m); switch (f.getKeyname()) {