Fix pool_create() to honor the POOL_INTERN flag.

(Thanks to Brion Vibber.)
This commit is contained in:
Wayne Davison
2007-08-21 04:54:30 +00:00
parent 4eff3051a0
commit a0f70237f5

View File

@@ -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;
}