mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 12:39:01 -04:00
Always align pool element lengths properly.
Enforce 8-byte alignment on the pool element lengths.
This commit is contained in:
parent
685f504564
commit
cf6cf5f820
@ -47,6 +47,8 @@ kore_pool_init(struct kore_pool *pool, const char *name,
|
||||
if ((pool->name = strdup(name)) == NULL)
|
||||
fatal("kore_pool_init: strdup %s", errno_s);
|
||||
|
||||
len = (len + (8 - 1)) & ~(8 - 1);
|
||||
|
||||
pool->lock = 0;
|
||||
pool->elms = 0;
|
||||
pool->inuse = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user