Mercurial > hg > xemacs-beta
diff src/mc-alloc.c @ 2932:6c70efc2b5b1
[xemacs-hg @ 2005-09-14 14:24:28 by crestani]
Initialize lookup table.
author | crestani |
---|---|
date | Wed, 14 Sep 2005 14:24:30 +0000 |
parents | 05d62157e048 |
children | ec5f23ea6d2e |
line wrap: on
line diff
--- a/src/mc-alloc.c Wed Sep 14 05:31:02 2005 +0000 +++ b/src/mc-alloc.c Wed Sep 14 14:24:30 2005 +0000 @@ -521,7 +521,7 @@ MC_MALLOCED_BYTES += malloced_storage_size (0, sizeof (level_2_lookup_tree), 0); #endif - memset (l2, 0, sizeof (level_2_lookup_tree)); + memset (l2, '\0', sizeof (level_2_lookup_tree)); #ifdef USE_HASH_TABLE LEVEL2_HASH_LINK (l2) = PTR_LOOKUP_TABLE (l1_index); #endif @@ -1690,6 +1690,8 @@ { int i; + memset (&mc_allocator_globals, '\0', sizeof (mc_allocator_globals_type)); + for (i = 0; i < N_USED_PAGE_LISTS; i++) { page_list_header *plh = USED_HEAP_PAGES (i);