提交 0549de06 编写于 作者: T Tom Lane

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

John Gray
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册