From eee9f69ca16f8c1d660f78fe61117b6f02cf9232 Mon Sep 17 00:00:00 2001 From: rfm Date: Fri, 22 Nov 2013 15:39:49 +0000 Subject: [PATCH] protocol_copyProtocolList() return the allocated/populated result --- protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol.c b/protocol.c index c683277..230d89e 100644 --- a/protocol.c +++ b/protocol.c @@ -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,