Commit 3393c3a6 by Stan Shebs Committed by Stan Shebs

* objc/objc-act.c (hash_init): Use xcalloc.

From-SVN: r43498
parent daa19534
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.
......
......@@ -5447,11 +5447,8 @@ build_ivar_reference (id)
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment