mirror of
https://github.com/darlinghq/darling-libobjc2.git
synced 2024-11-23 12:19:44 +00:00
Fix protocol_copyProtocolList() to return the correct count value.
This commit is contained in:
parent
39b6c20d5e
commit
a78a7f3e6b
@ -336,6 +336,7 @@ Protocol*__unsafe_unretained* protocol_copyProtocolList(Protocol *p, unsigned in
|
||||
return NULL;
|
||||
}
|
||||
|
||||
*count = p->protocol_list->count;
|
||||
Protocol **out = calloc(sizeof(Protocol*), p->protocol_list->count);
|
||||
for (int i=0 ; i<p->protocol_list->count ; i++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user