summaryrefslogtreecommitdiff
path: root/lib/pool_alloc.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2007-08-21 04:54:30 +0000
committerWayne Davison <wayned@samba.org>2007-08-21 04:54:30 +0000
commita0f70237f557be9d4208e677c49d8fc99328c592 (patch)
tree1903e6122d211d94a7f8e40754e6769c0fdbd360 /lib/pool_alloc.c
parent4eff3051a0d2d58c04e6f2ea7264a1e3b05caf9c (diff)
downloadrsync-a0f70237f557be9d4208e677c49d8fc99328c592.tar.gz
rsync-a0f70237f557be9d4208e677c49d8fc99328c592.tar.bz2
rsync-a0f70237f557be9d4208e677c49d8fc99328c592.zip
Fix pool_create() to honor the POOL_INTERN flag.
(Thanks to Brion Vibber.)
Diffstat (limited to 'lib/pool_alloc.c')
-rw-r--r--lib/pool_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pool_alloc.c b/lib/pool_alloc.c
index 7d95f197..e1ce50b3 100644
--- a/lib/pool_alloc.c
+++ b/lib/pool_alloc.c
@@ -52,7 +52,7 @@ pool_create(size_t size, size_t quantum, void (*bomb)(const char *), int flags)
pool->size = size /* round extent size to min alignment reqs */
? (size + MINALIGN - 1) & ~(MINALIGN - 1)
: POOL_DEF_EXTENT;
- if (pool->flags & POOL_INTERN) {
+ if (flags & POOL_INTERN) {
pool->size -= sizeof (struct pool_extent);
flags |= POOL_APPEND;
}