1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-08-08 21:42:07 +03:00

Explain why we have to mess with 'boolval' of value trees

This commit is contained in:
Nick Wellnhofer
2023-12-20 19:04:51 +01:00
parent c5c66dfbf5
commit 73b955aea0
2 changed files with 14 additions and 6 deletions

View File

@@ -793,7 +793,11 @@ exsltFuncResultElem (xsltTransformContextPtr ctxt,
"exsltFuncResultElem: ret == NULL\n");
data->error = 1;
} else {
ret->boolval = 0; /* Freeing is not handled there anymore */
/*
* This stops older libxml2 versions from freeing the nodes
* in the tree.
*/
ret->boolval = 0;
}
} else {
/* If the func:result element has empty content and does not