Fix invocation breakage.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30606 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2010-06-07 14:43:08 +00:00
parent 04f3016872
commit 122c4b087a
3 changed files with 15 additions and 12 deletions

View file

@ -518,7 +518,9 @@ class_replaceMethod(Class cls, SEL name, IMP imp, const char *types)
BOOL
class_respondsToSelector(Class cls, SEL sel)
{
return __objc_responds_to((id) & cls, sel);
if (cls != 0 && sel != 0 && __objc_responds_to((id) & cls, sel) != 0)
return YES;
return NO;
}
void