mirror of
https://git.burble.com/burble.dn42/bird.git
synced 2024-05-12 03:55:05 +00:00
Slab: Init node in slab head to NULLs.
This commit is contained in:
@ -216,8 +216,11 @@ sl_new_head(slab *s)
|
||||
struct sl_obj *no;
|
||||
uint n = s->objs_per_slab;
|
||||
|
||||
h->first_free = o;
|
||||
h->num_full = 0;
|
||||
*h = (struct sl_head) {
|
||||
.first_free = o,
|
||||
.num_full = 0,
|
||||
};
|
||||
|
||||
while (n--)
|
||||
{
|
||||
o->slab = h;
|
||||
|
Reference in New Issue
Block a user