mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +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
8e54e9ebd7
commit
e8d0a967bc
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…
Add table
Add a link
Reference in a new issue