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

John Gray
REL8_0_STABLE
Tom Lane 21 years ago
parent 84620860d9
commit 0549de06ba
  1. 3
      contrib/xml2/xpath.c

@ -582,7 +582,10 @@ pgxml_result_to_text(xmlXPathObjectPtr res,
text *xpres;
if (res == NULL)
{
xmlCleanupParser();
return NULL;
}
switch (res->type)
{
case XPATH_NODESET:

Loading…
Cancel
Save