(class_create_instance): Replace memchr with memset.
From-SVN: r8515
This commit is contained in:
parent
d72a78574b
commit
d5e4fa5e17
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user