From 45568ac01fe66dae6262670065cac174b0266304 Mon Sep 17 00:00:00 2001 From: Richard Frith-MacDonald Date: Fri, 5 Mar 2010 08:11:38 +0000 Subject: [PATCH] fix error looking up protcol git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29845 72102866-910b-0410-8b05-ffd578937521 --- Source/ObjectiveC2/runtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/ObjectiveC2/runtime.c b/Source/ObjectiveC2/runtime.c index 759565029..199ab4234 100644 --- a/Source/ObjectiveC2/runtime.c +++ b/Source/ObjectiveC2/runtime.c @@ -1026,7 +1026,7 @@ objc_getProtocol(const char *name) struct objc_protocol_list *pcllist = cls->protocols; size_t i; - while (pcllist != NULL) + while (p == NULL && pcllist != NULL) { for (i = 0; i < pcllist->count; i++) {