[set] Initialize pool's dynamic arrays

Testing had missed this because qfvis is the main user of set pools.
This commit is contained in:
Bill Currie 2023-03-15 10:17:42 +09:00
parent 68b5cd89d2
commit 5255c9c7a8

View file

@ -80,8 +80,10 @@ set_del_iter_r (set_pool_t *set_pool, set_iter_t *set_iter)
void
set_pool_init (set_pool_t *set_pool)
{
set_pool->set_freelist = 0;
set_pool->set_iter_freelist = 0;
*set_pool = (set_pool_t) {
.set_blocks = DARRAY_STATIC_INIT (8),
.set_iter_blocks = DARRAY_STATIC_INIT (8),
};
}
inline set_t *