better cope with null selectors.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31178 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2010-08-17 18:36:46 +00:00
parent 658003a847
commit fbbfb632c8
4 changed files with 21 additions and 6 deletions

View file

@ -147,7 +147,7 @@ extern BOOL __objc_responds_to(id, SEL);
{
struct objc_method *mth;
if (aSelector == 0)
if (0 == aSelector)
{
return nil;
}
@ -393,7 +393,7 @@ extern BOOL __objc_responds_to(id, SEL);
{
struct objc_method *mth;
if (aSelector == 0)
if (0 == aSelector)
{
return nil;
}