+2001-06-21 Stan Shebs <shebs@apple.com>
+
+ * objc/objc-act.c (hash_init): Use xcalloc.
+
2001-06-21 Richard Henderson <rth@redhat.com>
* flow.c (entry_exit_blocks): Initialize frequency.
static void
hash_init ()
{
- nst_method_hash_list = (hash *) xmalloc (SIZEHASHTABLE * sizeof (hash));
- cls_method_hash_list = (hash *) xmalloc (SIZEHASHTABLE * sizeof (hash));
-
- memset (nst_method_hash_list, 0, SIZEHASHTABLE * sizeof (hash));
- memset (cls_method_hash_list, 0, SIZEHASHTABLE * sizeof (hash));
+ nst_method_hash_list = (hash *) xcalloc (SIZEHASHTABLE, sizeof (hash));
+ cls_method_hash_list = (hash *) xcalloc (SIZEHASHTABLE, sizeof (hash));
}
/* WARNING!!!! hash_enter is called with a method, and will peek