mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-26 10:11:03 +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
|
@ -1,3 +1,8 @@
|
||||||
|
2010-06-09 David Wetzel <dave@turbocat.de>
|
||||||
|
* Source/Additions/GSXML.m:
|
||||||
|
check for NULL string
|
||||||
|
stringWithUTF8String: raises on OSX if you feed it with a NULL string.
|
||||||
|
|
||||||
2010-06-09 Richard Frith-Macdonald <rfm@gnu.org>
|
2010-06-09 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* configure.ac: Check for gcrypt library for TLS
|
* configure.ac: Check for gcrypt library for TLS
|
||||||
|
|
|
@ -120,6 +120,10 @@ static SEL usSel;
|
||||||
inline static NSString*
|
inline static NSString*
|
||||||
UTF8Str(const unsigned char *bytes)
|
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);
|
return (*usImp)(NSString_class, usSel, bytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue