mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-17 18:33:32 +09:00
Bug #1668: Fix xml parser for empty xml elements
This commit is contained in:
1 parent
645655f088
commit
66182bb23d
1 file changed
+1
-1
@@ -538,7 +538,7 @@ Attribute * Template::single_xml_att(const xmlNode * node)
|
||||
Attribute * attr = 0;
|
||||
xmlNode * child = node->children;
|
||||
|
||||
if( child->next == 0 && child != 0 &&
|
||||
if( child != 0 && child->next == 0 &&
|
||||
(child->type == XML_TEXT_NODE ||
|
||||
child->type == XML_CDATA_SECTION_NODE))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user