User: crestani
Date: 05/09/14 16:24:32
Modified: xemacs/src ChangeLog mc-alloc.c
Log:
Initialize lookup table.
Revision Changes Path
1.855 +6 -0 XEmacs/xemacs/src/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/ChangeLog,v
retrieving revision 1.854
retrieving revision 1.855
diff -u -p -r1.854 -r1.855
--- ChangeLog 2005/09/14 05:30:49 1.854
+++ ChangeLog 2005/09/14 14:24:28 1.855
@@ -1,3 +1,9 @@
+2005-09-14 Marcus Crestani <crestani(a)xemacs.org>
+
+ * mc-alloc.c (set_lookup_table): Adjust parameter to other memset
+ calls.
+ * mc-alloc.c (init_mc_allocator): Zero global allocator structure.
+
2005-09-14 Stephen J. Turnbull <stephen(a)xemacs.org>
* XEmacs 21.5.22 "cucumber" is released.
1.4 +3 -1 XEmacs/xemacs/src/mc-alloc.c
Index: mc-alloc.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/mc-alloc.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- mc-alloc.c 2005/05/15 16:38:13 1.3
+++ mc-alloc.c 2005/09/14 14:24:30 1.4
@@ -521,7 +521,7 @@ set_lookup_table (void *ptr, page_header
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
@@ -1689,6 +1689,8 @@ void
init_mc_allocator (void)
{
int i;
+
+ memset (&mc_allocator_globals, '\0', sizeof (mc_allocator_globals_type));
for (i = 0; i < N_USED_PAGE_LISTS; i++)
{