From f9f97aac3bb440860c654be1e561f2096555c58f Mon Sep 17 00:00:00 2001 From: Klaus Kaempf Date: Mon, 20 Oct 2008 14:09:23 +0000 Subject: [PATCH] take pool from repo if pool is passed as NULL to dataiterator_init --- src/repodata.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/repodata.c b/src/repodata.c index 8e2c88b..8ee7553 100644 --- a/src/repodata.c +++ b/src/repodata.c @@ -956,6 +956,15 @@ int dataiterator_init(Dataiterator *di, Pool *pool, Repo *repo, Id p, Id keyname, const char *match, int flags) { memset(di, 0, sizeof(*di)); + if (pool == NULL) + { + if (repo == NULL) + { + return -1; + } + pool = repo->pool; + } + di->pool = pool; if (match) { -- 2.7.4