From d315fd40f526c9b86518f61523df63ac9c721f51 Mon Sep 17 00:00:00 2001 From: theraven Date: Thu, 18 Jul 2013 09:17:11 +0000 Subject: [PATCH] Correctly handle buffered protocols. Reported by: Krystof Vasa --- protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol.c b/protocol.c index 5b9e42e..c683277 100644 --- a/protocol.c +++ b/protocol.c @@ -198,7 +198,7 @@ PRIVATE void objc_init_protocols(struct objc_protocol_list *protocols) set_buffered_object_at_index(protocols, buffered_objects++); return; } - if (buffered_objects > 0) { return; } + if (buffered_objects == 0) { return; } // If we can load one protocol, then we can load all of them. for (unsigned i=0 ; i