From cc260222da895bffcb1f3a7719a994c89d86a273 Mon Sep 17 00:00:00 2001 From: ericwa Date: Thu, 3 Jun 2010 19:30:01 +0000 Subject: [PATCH] protocol.c: don't call init_protocols() with NULL --- protocol.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/protocol.c b/protocol.c index 969f2be..c330d8a 100644 --- a/protocol.c +++ b/protocol.c @@ -180,7 +180,10 @@ static BOOL init_protocols(struct objc_protocol_list *protocols) break; } // Initialize all of the protocols that this protocol refers to - init_protocols(aProto->protocol_list); + if (NULL != aProto->protocol_list) + { + init_protocols(aProto->protocol_list); + } // Replace this protocol with a unique version of it. protocols->list[i] = unique_protocol(aProto); }