* Source/NSXMLNode.m: fixes for issues found in GNUstep unit

tests.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34581 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2012-01-18 21:21:32 +00:00
parent 01ed308814
commit a5d9f67a89
2 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2012-01-18 16:21-EST Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSXMLNode.m: fixes for issues found in GNUstep unit
tests.
2012-01-18 12:52-EST Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSXMLDTDNode.m: Remove uneeded releases in dealloc.

View file

@ -510,6 +510,11 @@ NSArray *execute_xpath(NSXMLNode *node,
xmlNodePtr children = NULL;
xmlNodePtr node = (xmlNodePtr)(internal->node);
if(node->children == NULL)
{
return nil;
}
childrenArray = [NSMutableArray array];
for (children = node->children; children; children = children->next)
{
@ -977,6 +982,11 @@ NSArray *execute_xpath(NSXMLNode *node,
- (void) setObjectValue: (id)value
{
if(nil == value)
{
ASSIGN(internal->objectValue, [NSString stringWithString: @""]);
return;
}
ASSIGN(internal->objectValue, value);
}