Commit 0549de06 authored by Tom Lane's avatar Tom Lane

Fix segfault when xpath_list function is applied to an invalid document.

John Gray
parent 84620860
......@@ -582,7 +582,10 @@ pgxml_result_to_text(xmlXPathObjectPtr res,
text *xpres;
if (res == NULL)
{
xmlCleanupParser();
return NULL;
}
switch (res->type)
{
case XPATH_NODESET:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment