From d5e4fa5e173ff180b66524db80e4392051dfa479 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 18 Nov 1994 19:10:21 -0500 Subject: [PATCH] (class_create_instance): Replace memchr with memset. From-SVN: r8515 --- gcc/objc/objects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/objc/objects.c b/gcc/objc/objects.c index aad1610e4ce..5c64fdaaf51 100644 --- a/gcc/objc/objects.c +++ b/gcc/objc/objects.c @@ -43,7 +43,7 @@ class_create_instance(Class* class) new = (*_objc_object_alloc)(class); if (new!=nil) { - memchr (new, 0, class->instance_size); + memset (new, 0, class->instance_size); new->class_pointer = class; } return new; -- 2.30.2