summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-05-07 20:18:58 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-05-07 20:22:53 +0300
commit6fc3cbefee92520a842caa29cf0ae1cc6f238c98 (patch)
treeaf98e5071e4f30ef5b840ba488785b95038f26e5
parent775cbf8bf28775f913ac40a79d95de714fff6d2d (diff)
downloadrpm-6fc3cbefee92520a842caa29cf0ae1cc6f238c98.tar.gz
rpm-6fc3cbefee92520a842caa29cf0ae1cc6f238c98.tar.bz2
rpm-6fc3cbefee92520a842caa29cf0ae1cc6f238c98.zip
Fix breakage from removedPackages changing to hash
- tsmem->delta is still needed for tsmem->order reallocation, zero delta causes funny effects on larger package sets (test suite doesnt trigger this)
-rw-r--r--lib/rpmts.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rpmts.c b/lib/rpmts.c
index 1688889fd..727d77516 100644
--- a/lib/rpmts.c
+++ b/lib/rpmts.c
@@ -918,6 +918,7 @@ rpmts rpmtsCreate(void)
}
tsmem = xcalloc(1, sizeof(*ts->members));
+ tsmem->delta = 5;
tsmem->numAddedPackages = 0;
tsmem->addedPackages = NULL;
tsmem->removedPackages = intHashCreate(128, uintId, uintCmp, NULL);