If no typename could be determined, stop parsing.

* lasso/xml/xml.c:
   in lasso_node_new_from_xmlNode if no typename is found for the given
   xmlNode, return NULL.
This commit is contained in:
Benjamin Dauvergne 2009-04-21 12:22:41 +00:00
parent 827d79af7c
commit 670383da1e
1 changed files with 3 additions and 2 deletions

View File

@ -1554,8 +1554,9 @@ lasso_node_new_from_xmlNode(xmlNode *xmlnode)
}
}
}
node = lasso_node_new_from_xmlNode_with_type(xmlnode, typename);
if (typename) {
node = lasso_node_new_from_xmlNode_with_type(xmlnode, typename);
}
lasso_release(typename);
return node;