projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c76a51
)
Make rpmstrPoolUnfreeze() safe to call on unfrozen pool
author
Panu Matilainen
<pmatilai@redhat.com>
Tue, 11 Sep 2012 06:01:49 +0000
(09:01 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Tue, 11 Sep 2012 06:01:49 +0000
(09:01 +0300)
rpmio/rpmstrpool.c
patch
|
blob
|
history
diff --git
a/rpmio/rpmstrpool.c
b/rpmio/rpmstrpool.c
index
14a6466
..
87e025e
100644
(file)
--- 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;