diff options
author | Zheng Da <zhengda1936@gmail.com> | 2010-05-28 15:50:21 +0200 |
---|---|---|
committer | Zheng Da <zhengda1936@gmail.com> | 2010-05-28 15:50:21 +0200 |
commit | d0c445cf35dc8b51b12011c71c48807233023e35 (patch) | |
tree | 47a4d4a067a86f447ca82e384eba3975a395cb63 /libhurd-slab/slab.c | |
parent | f04e8156038d62d6a79e05d9b022c53705e44048 (diff) |
set new slab with 0.
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. */ |