summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2008-03-03 17:29:13 +0000
committerMichael Schroeder <mls@suse.de>2008-03-03 17:29:13 +0000
commit4b2b0e8355e7b001170fd7104a9defaf9a8c25a2 (patch)
treee7410e84c6395870440dfb2e075b66606b414020
parent06af4258255cc71489edd0fc474aa1a9b3acd925 (diff)
downloadlibsolv-4b2b0e8355e7b001170fd7104a9defaf9a8c25a2.tar.gz
libsolv-4b2b0e8355e7b001170fd7104a9defaf9a8c25a2.tar.bz2
libsolv-4b2b0e8355e7b001170fd7104a9defaf9a8c25a2.zip
- use correct variable (hopefully fixes #366548)
-rw-r--r--src/poolid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/poolid.c b/src/poolid.c
index 0fcb75f..a08c183 100644
--- a/src/poolid.c
+++ b/src/poolid.c
@@ -70,7 +70,7 @@ rel2id(Pool *pool, Id name, Id evr, int flags, int create)
if (pool->nrels * 2 > hashmask)
{
sat_free(pool->relhashtbl);
- pool->relhashmask = hashmask = mkmask(pool->ss.nstrings + REL_BLOCK);
+ pool->relhashmask = hashmask = mkmask(pool->nrels + REL_BLOCK);
pool->relhashtbl = hashtbl = sat_calloc(hashmask + 1, sizeof(Id));
// rehash all rels into new hashtable
for (i = 1; i < pool->nrels; i++)