aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc
diff options
context:
space:
mode:
authorStan Shebs <shebs@apple.com>2001-06-22 02:38:22 +0000
committerStan Shebs <shebs@gcc.gnu.org>2001-06-22 02:38:22 +0000
commit3393c3a6e3cbbef3287c7bcd120d5a68550bcc71 (patch)
tree10674b909e9314e9f65353eb1838f2245e51dd61 /gcc/objc
parentdaa19534a9092adc46b177ba8d0eccbd8be59c7a (diff)
downloadgcc-3393c3a6e3cbbef3287c7bcd120d5a68550bcc71.zip
gcc-3393c3a6e3cbbef3287c7bcd120d5a68550bcc71.tar.gz
gcc-3393c3a6e3cbbef3287c7bcd120d5a68550bcc71.tar.bz2
* objc/objc-act.c (hash_init): Use xcalloc.
From-SVN: r43498
Diffstat (limited to 'gcc/objc')
-rw-r--r--gcc/objc/objc-act.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c
index 076637e..af9a8bb 100644
--- a/gcc/objc/objc-act.c
+++ b/gcc/objc/objc-act.c
@@ -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