From c90499b23d56097ff430b9690393bd654168a6e9 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Fri, 8 Feb 2008 15:11:44 +0000 Subject: [PATCH] data can validly be 0, in which case we never have a localpool. --- src/repo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/repo.c b/src/repo.c index 9e44e12..2a2eb4c 100644 --- a/src/repo.c +++ b/src/repo.c @@ -489,10 +489,10 @@ repo_matchvalue(void *cbdata, Solvable *s, Repodata *data, Repokey *key, KeyValu { case TYPE_ID: case TYPE_IDARRAY: - if (data->localpool) + if (data && data->localpool) kv->str = stringpool_id2str(&data->spool, kv->id); else - kv->str = id2str(data->repo->pool, kv->id); + kv->str = id2str(s->repo->pool, kv->id); break; case TYPE_STR: break; -- 2.7.4