1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-07-29 15:41:13 +03:00

Stop calling deprecated libxml2 init functions

This commit is contained in:
Nick Wellnhofer
2022-03-18 15:03:44 +01:00
parent fbec07736b
commit 22f12ce58e
4 changed files with 0 additions and 4 deletions

View File

@ -637,7 +637,6 @@ xsltNewTransformContext(xsltStylesheetPtr style, xmlDocPtr doc) {
cur->prof = 0; cur->prof = 0;
cur->style = style; cur->style = style;
xmlXPathInit();
cur->xpathCtxt = xmlXPathNewContext(doc); cur->xpathCtxt = xmlXPathNewContext(doc);
if (cur->xpathCtxt == NULL) { if (cur->xpathCtxt == NULL) {
xsltTransformError(NULL, NULL, (xmlNodePtr) doc, xsltTransformError(NULL, NULL, (xmlNodePtr) doc,

View File

@ -1279,7 +1279,6 @@ void initlibxsltmod(void) {
* Specific XSLT initializations * Specific XSLT initializations
*/ */
libxslt_xsltErrorInitialize(); libxslt_xsltErrorInitialize();
xmlInitMemory();
xmlLoadExtDtdDefaultValue = XML_DETECT_IDS | XML_COMPLETE_ATTRS; xmlLoadExtDtdDefaultValue = XML_DETECT_IDS | XML_COMPLETE_ATTRS;
xmlDefaultSAXHandler.cdataBlock = NULL; xmlDefaultSAXHandler.cdataBlock = NULL;
/* /*

View File

@ -53,7 +53,6 @@ static void
xsltFuzzInit(void) { xsltFuzzInit(void) {
/* Init libxml2, libxslt and libexslt */ /* Init libxml2, libxslt and libexslt */
xmlInitParser(); xmlInitParser();
xmlXPathInit();
xsltInit(); xsltInit();
exsltRegisterAll(); exsltRegisterAll();

View File

@ -565,7 +565,6 @@ main(int argc, char **argv)
} }
srand(time(NULL)); srand(time(NULL));
xmlInitMemory();
#if defined(_WIN32) && !defined(__CYGINW__) #if defined(_WIN32) && !defined(__CYGINW__)
setmode(fileno(stdout), O_BINARY); setmode(fileno(stdout), O_BINARY);