mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
* Source/Additions/GSXML.m:
check for NULL string stringWithUTF8String: raises on OSX if you feed it with a NULL string. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30641 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
81cd9d0ec8
commit
c5bd50b2db
2 changed files with 9 additions and 0 deletions
|
@ -120,6 +120,10 @@ static SEL usSel;
|
|||
inline static NSString*
|
||||
UTF8Str(const unsigned char *bytes)
|
||||
{
|
||||
// stringWithUTF8String: raises on OSX if you feed it with a NULL string.
|
||||
if ((bytes == NULL)) {
|
||||
return nil;
|
||||
}
|
||||
return (*usImp)(NSString_class, usSel, bytes);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue