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;