mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
* 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:
parent
01ed308814
commit
a5d9f67a89
2 changed files with 15 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue