From: Richard Kenner Date: Sat, 19 Nov 1994 00:10:21 +0000 (-0500) Subject: (class_create_instance): Replace memchr with memset. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d5e4fa5e173ff180b66524db80e4392051dfa479;p=gcc.git (class_create_instance): Replace memchr with memset. From-SVN: r8515 --- 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;