diff --git a/src/template/Template.cc b/src/template/Template.cc index e461a4afbe..4905639714 100644 --- a/src/template/Template.cc +++ b/src/template/Template.cc @@ -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)) {