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:
parent
827d79af7c
commit
670383da1e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue