mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
fix a bug when a dictionary contains non-string values
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/nsxml_using_libxml2@34597 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
83c45d4850
commit
83dfcdf77a
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ extern void clearPrivatePointers(xmlNodePtr aNode);
|
||||||
// [internal->attributes removeAllObjects];
|
// [internal->attributes removeAllObjects];
|
||||||
while ((key = [en nextObject]) != nil)
|
while ((key = [en nextObject]) != nil)
|
||||||
{
|
{
|
||||||
NSString *val = [attributes objectForKey: key];
|
NSString *val = [[attributes objectForKey: key] stringValue];
|
||||||
NSXMLNode *attribute = [NSXMLNode attributeWithName: key
|
NSXMLNode *attribute = [NSXMLNode attributeWithName: key
|
||||||
stringValue: val];
|
stringValue: val];
|
||||||
[self addAttribute: attribute];
|
[self addAttribute: attribute];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue