Make NSHost more tolerant of bad system setups.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@8673 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 2001-01-18 08:27:00 +00:00
parent b987758597
commit d9e20073d0
3 changed files with 43 additions and 8 deletions

View file

@ -242,15 +242,15 @@ loadEntityFunction(const char *url, const char *eid, xmlParserCtxtPtr *ctxt);
xmlSaveFile([filename cString], lib);
}
- (NSString *) stringValue
- (NSString*) stringValue
{
NSString *string = nil;
xmlChar *buf = NULL;
int length;
NSString *string = nil;
xmlChar *buf = NULL;
int length;
xmlDocDumpMemory(lib, &buf, &length);
if(buf && length)
if (buf != 0 && length > 0)
{
string = [NSString_class stringWithCString: buf length: length];
xmlFree(buf);