diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2022-02-16 16:35:49 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2022-02-16 16:35:49 +0900 |
commit | 0bc4568c4b69ef6535079bedda4a578f4e375aeb (patch) | |
tree | 3b6c2c08031225e8f6cc9032b4ee0ba78512538b /lib/pool_alloc.c | |
parent | 7acd85d65ef52b08be9cf5cdf057239aa7a21e85 (diff) | |
download | rsync-0bc4568c4b69ef6535079bedda4a578f4e375aeb.tar.gz rsync-0bc4568c4b69ef6535079bedda4a578f4e375aeb.tar.bz2 rsync-0bc4568c4b69ef6535079bedda4a578f4e375aeb.zip |
Imported Upstream version 3.2.0upstream/3.2.0
Diffstat (limited to 'lib/pool_alloc.c')
-rw-r--r-- | lib/pool_alloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pool_alloc.c b/lib/pool_alloc.c index 5856d591..a70a3f1a 100644 --- a/lib/pool_alloc.c +++ b/lib/pool_alloc.c @@ -49,15 +49,15 @@ pool_create(size_t size, size_t quantum, void (*bomb)(const char *), int flags) { struct alloc_pool *pool; - if (!(pool = new0(struct alloc_pool))) - return NULL; - if ((MINALIGN & (MINALIGN - 1)) != 0) { if (bomb) (*bomb)("Compiler error: MINALIGN is not a power of 2\n"); return NULL; } + if (!(pool = new0(struct alloc_pool))) + return NULL; + if (!size) size = POOL_DEF_EXTENT; if (!quantum) |