diff options
Diffstat (limited to 'libhurd-slab/slab.c')
-rw-r--r-- | libhurd-slab/slab.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libhurd-slab/slab.c b/libhurd-slab/slab.c index 51261e21..58222704 100644 --- a/libhurd-slab/slab.c +++ b/libhurd-slab/slab.c @@ -252,6 +252,7 @@ grow (struct hurd_slab_space *space) __hurd_slab_nr_pages++; new_slab = (p + space->slab_size - sizeof (struct hurd_slab)); + memset (new_slab, 0, sizeof (*new_slab)); /* Calculate the number of objects that the page can hold. SPACE->size should be adjusted to handle alignment. */ |