diff options
Diffstat (limited to 'ext/repo_cudf.c')
-rw-r--r-- | ext/repo_cudf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/repo_cudf.c b/ext/repo_cudf.c index 316887b..00a4f87 100644 --- a/ext/repo_cudf.c +++ b/ext/repo_cudf.c @@ -177,7 +177,7 @@ finishpackage(Pool *pool, Solvable *s, int keep, Queue *job) int repo_add_cudf(Repo *repo, Repo *installedrepo, FILE *fp, Queue *job, int flags) { - Pool *pool = repo->pool; + Pool *pool; char *buf, *p; int bufa, bufl, c; Solvable *s; @@ -190,6 +190,7 @@ repo_add_cudf(Repo *repo, Repo *installedrepo, FILE *fp, Queue *job, int flags) xrepo = repo ? repo : installedrepo; if (!xrepo) return -1; + pool = xrepo->pool; buf = solv_malloc(4096); bufa = 4096; |