diff --git a/properties.m b/properties.m index fe4344d..96c1418 100644 --- a/properties.m +++ b/properties.m @@ -466,7 +466,7 @@ BOOL class_addProperty(Class cls, struct objc_property_list *l = calloc(1, sizeof(struct objc_property_list) + sizeof(struct objc_property)); - l->count = 0; + l->count = 1; memcpy(&l->properties, &p, sizeof(struct objc_property)); LOCK_RUNTIME_FOR_SCOPE(); l->next = cls->properties;