Work around GCC bug.

main
theraven 14 years ago
parent 4796a41e4e
commit ec5046f8ca

@ -609,7 +609,8 @@ void protocol_addProperty(Protocol *aProtocol,
} }
struct objc_property_list *list = *listPtr; struct objc_property_list *list = *listPtr;
int index = list->count-1; int index = list->count-1;
list->properties[index] = propertyFromAttrs(attributes, attributeCount); struct objc_property p = propertyFromAttrs(attributes, attributeCount);
list->properties[index].name = strdup(name); p.name = strdup(name);
memcpy(&(list->properties[index]), &p, sizeof(p));
} }

Loading…
Cancel
Save