mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
2001-02-11 Manuel Guesdon <mguesdon@orange-concept.com>
* GSXML.m: testing lib!=NULL and string!=NULL before doing something in -GSXMLNode content -GSXMLNode name -GSXMLNode ns -GSXMLNode nsDef * NSString.m: handle NULL bytes in -initWithUTF8String: (Treat it as zero length string and NSDebugMLog a warning). git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9124 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
117d5ce1a0
commit
93fbbf56ef
3 changed files with 21 additions and 5 deletions
|
@ -605,7 +605,13 @@ handle_printf_atsign (FILE *stream,
|
|||
|
||||
- (id) initWithUTF8String: (const char *)bytes
|
||||
{
|
||||
unsigned length = strlen(bytes);
|
||||
unsigned length = 0;
|
||||
if (bytes==NULL)
|
||||
{
|
||||
NSDebugMLog(@"bytes is NULL");
|
||||
}
|
||||
else
|
||||
length=strlen(bytes);
|
||||
|
||||
if (length > 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue