1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

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

John Gray
This commit is contained in:
Tom Lane
2005-01-09 17:40:40 +00:00
parent 84620860d9
commit 0549de06ba

View File

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