mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Cope with null selector/name
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29765 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
16e2cea32d
commit
ed61c48af2
1 changed files with 3 additions and 0 deletions
|
@ -1038,12 +1038,14 @@ protocol_isEqual(Protocol *p, Protocol *other)
|
|||
const char *
|
||||
sel_getName(SEL sel)
|
||||
{
|
||||
if (name == 0) return "<null selector>";
|
||||
return sel_get_name(sel);
|
||||
}
|
||||
|
||||
SEL
|
||||
sel_getUid(const char *selName)
|
||||
{
|
||||
if (selName == 0) return 0;
|
||||
return sel_get_uid(selName);
|
||||
}
|
||||
|
||||
|
@ -1056,6 +1058,7 @@ sel_isEqual(SEL sel1, SEL sel2)
|
|||
SEL
|
||||
sel_registerName(const char *selName)
|
||||
{
|
||||
if (selName == 0) return 0;
|
||||
return sel_register_name(selName);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue