mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
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:
parent
b987758597
commit
d9e20073d0
3 changed files with 43 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue