projects
/
platform
/
upstream
/
libsolv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bb53d9
)
take pool from repo if pool is passed as NULL to dataiterator_init
author
Klaus Kaempf
<kkaempf@suse.de>
Mon, 20 Oct 2008 14:09:23 +0000
(14:09 +0000)
committer
Klaus Kaempf
<kkaempf@suse.de>
Mon, 20 Oct 2008 14:09:23 +0000
(14:09 +0000)
src/repodata.c
patch
|
blob
|
history
diff --git
a/src/repodata.c
b/src/repodata.c
index
8e2c88b
..
8ee7553
100644
(file)
--- 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)
{