diff options
| author | shebs <shebs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-22 02:38:22 +0000 |
|---|---|---|
| committer | shebs <shebs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-22 02:38:22 +0000 |
| commit | c34aa04a2e35bb1531cccb9db5264d5ad76ac2d8 (patch) | |
| tree | 10674b909e9314e9f65353eb1838f2245e51dd61 /gcc/objc/objc-act.c | |
| parent | 111b096e564f3c600825fc7232d922eddfd64955 (diff) | |
| download | ppe42-gcc-c34aa04a2e35bb1531cccb9db5264d5ad76ac2d8.tar.gz ppe42-gcc-c34aa04a2e35bb1531cccb9db5264d5ad76ac2d8.zip | |
* objc/objc-act.c (hash_init): Use xcalloc.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43498 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/objc/objc-act.c')
| -rw-r--r-- | gcc/objc/objc-act.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 076637e588f..af9a8bb858d 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 |

