diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-01-04 09:13:49 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-01-04 09:13:49 +0000 |
| commit | 1deaa13210496499da8060bebb927ddb6895c81e (patch) | |
| tree | fdbb0e942bc59415ddd3fb43e452b3d7500eb55b | |
| parent | bb2f640231f5f88cb819cb761be2f30d90a34f00 (diff) | |
Core XML: in xml/tools.c, improve lasso_eval_xpath_expression, do not fail when nodeset is empty
* lasso/xml/tools.c:
only check that the query returned a nodeset object, do not check its
content size.
| -rw-r--r-- | lasso/xml/tools.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lasso/xml/tools.c b/lasso/xml/tools.c index 026d855f..f01a4c77 100644 --- a/lasso/xml/tools.c +++ b/lasso/xml/tools.c @@ -1027,7 +1027,7 @@ lasso_eval_xpath_expression(xmlXPathContextPtr xpath_ctx, const char *expression xpath_object = xmlXPathEvalExpression((xmlChar*)expression, xpath_ctx); xpath_ctx->error = oldStructuredErrorFunc; - if (xpath_object && xpath_object->nodesetval && xpath_object->nodesetval->nodeNr) { + if (xpath_object) { if (xpath_object_ptr) { lasso_transfer_xpath_object(*xpath_object_ptr, xpath_object); } |
