fix error looking up protcol

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29845 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-03-05 08:11:38 +00:00
parent e947396a6e
commit 45568ac01f

View file

@ -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++)
{