diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2012-09-11 09:01:49 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2012-09-11 09:01:49 +0300 |
commit | 00deac224c023d5195a0795e4e9367fad6e85cee (patch) | |
tree | 68d160db80bf13b6d5d552cb4724644a6a710299 /rpmio | |
parent | 0c76a514f00c733542850816d2028fed3ece0f37 (diff) | |
download | librpm-tizen-00deac224c023d5195a0795e4e9367fad6e85cee.tar.gz librpm-tizen-00deac224c023d5195a0795e4e9367fad6e85cee.tar.bz2 librpm-tizen-00deac224c023d5195a0795e4e9367fad6e85cee.zip |
Make rpmstrPoolUnfreeze() safe to call on unfrozen pool
Diffstat (limited to 'rpmio')
-rw-r--r-- | rpmio/rpmstrpool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmio/rpmstrpool.c b/rpmio/rpmstrpool.c index 14a646653..87e025ec7 100644 --- a/rpmio/rpmstrpool.c +++ b/rpmio/rpmstrpool.c @@ -72,7 +72,7 @@ void rpmstrPoolFreeze(rpmstrPool pool) void rpmstrPoolUnfreeze(rpmstrPool pool) { - if (pool) { + if (pool && pool->hash == NULL) { int sizehint = (pool->offs_size / 2) - 1; if (sizehint < STRHASH_INITSIZE) sizehint = STRHASH_INITSIZE; |