protocol_copyProtocolList() return the allocated/populated result

This commit is contained in:
rfm 2013-11-22 15:39:49 +00:00
parent c819b379da
commit eee9f69ca1

View File

@ -341,7 +341,7 @@ Protocol*__unsafe_unretained* protocol_copyProtocolList(Protocol *p, unsigned in
{
out[i] = (Protocol*)p->protocol_list->list[i];
}
return NULL;
return out;
}
objc_property_t *protocol_copyPropertyList(Protocol *protocol,