index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2012-01-02 13:29:40 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-01-02 19:41:42 -0600 |
commit | 0b9cd9448c16dcf5e21ee8822698dbe908db520f (patch) | |
tree | 51061eb85fe69c880cf2497977102e022484152f /lib/libalpm/be_sync.c | |
parent | 177beb91c96a078f729bd11c2f6c1144082e69e3 (diff) |
-rw-r--r-- | lib/libalpm/be_sync.c | 3 |
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c index 07134e79..76c31f5a 100644 --- a/lib/libalpm/be_sync.c +++ b/lib/libalpm/be_sync.c @@ -439,8 +439,7 @@ static int sync_db_populate(alpm_db_t *db) } est_count = estimate_package_count(&buf, archive); - /* initialize hash at 66% full */ - db->pkgcache = _alpm_pkghash_create(est_count * 3 / 2); + db->pkgcache = _alpm_pkghash_create(est_count); if(db->pkgcache == NULL) { db->handle->pm_errno = ALPM_ERR_MEMORY; goto cleanup; |