summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8cf51f2)
raw | patch | inline | side by side (parent: 8cf51f2)
author | Florian Forster <octo@huhu.verplant.org> | |
Mon, 11 Jan 2010 14:46:07 +0000 (15:46 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Mon, 11 Jan 2010 14:46:07 +0000 (15:46 +0100) |
src/curl_xml.c | patch | blob | history |
diff --git a/src/curl_xml.c b/src/curl_xml.c
index a8dbc1cc0b995b4fb8028062a9a56b0a6f363deb..78051667394836ccf141d706f0f544a6763e6076 100644 (file)
--- a/src/curl_xml.c
+++ b/src/curl_xml.c
xmlXPathObjectPtr base_node_obj = NULL;
xmlXPathObjectPtr instance_node_obj = NULL;
- xmlXPathObjectPtr values_node_obj = NULL;
xmlNodeSetPtr base_nodes = NULL;
xmlNodeSetPtr instance_node = NULL;
xmlNodeSetPtr values_node = NULL;
xmlXPathFreeObject (instance_node_obj);
continue;
}
- }
+ } /* if (xpath->instance != NULL) */
for (j = 0; j < xpath->values_len; j++)
{
+ xmlXPathObjectPtr values_node_obj;
+
values_node_obj = cx_evaluate_xpath (xpath_ctx, BAD_CAST xpath->values[j].path);
+ if (values_node_obj == NULL)
+ continue; /* Error already logged. */
+
values_node = values_node_obj->nodesetval;
tmp_size = (values_node) ? values_node->nodeNr : 0;