diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2009-04-21 12:22:41 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2009-04-21 12:22:41 +0000 |
| commit | 670383da1ea8da3ed20b84a9802416aaffe4b5d7 (patch) | |
| tree | 1de88e6912c4c6a847747ab27e85077c9a2e87ad | |
| parent | 827d79af7c59fdefed211e14463841cd18e8ec71 (diff) | |
| download | lasso-670383da1ea8da3ed20b84a9802416aaffe4b5d7.tar.gz lasso-670383da1ea8da3ed20b84a9802416aaffe4b5d7.tar.xz lasso-670383da1ea8da3ed20b84a9802416aaffe4b5d7.zip | |
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.
| -rw-r--r-- | lasso/xml/xml.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lasso/xml/xml.c b/lasso/xml/xml.c index 2762fb2f..1df20cb4 100644 --- a/lasso/xml/xml.c +++ b/lasso/xml/xml.c @@ -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; |
