- use correct variable (hopefully fixes #366548)
authorMichael Schroeder <mls@suse.de>
Mon, 3 Mar 2008 17:29:13 +0000 (17:29 +0000)
committerMichael Schroeder <mls@suse.de>
Mon, 3 Mar 2008 17:29:13 +0000 (17:29 +0000)
src/poolid.c

index 0fcb75f..a08c183 100644 (file)
@@ -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++)