1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

Fix htmlReadMemory mixing up XML and HTML functions

Also see fe6890e2.
This commit is contained in:
Nick Wellnhofer
2022-08-22 14:04:07 +02:00
parent 920753c4aa
commit 37cedc0b15

View File

@ -6992,7 +6992,7 @@ htmlReadMemory(const char *buffer, int size, const char *URL, const char *encodi
htmlParserCtxtPtr ctxt;
xmlInitParser();
ctxt = xmlCreateMemoryParserCtxt(buffer, size);
ctxt = htmlCreateMemoryParserCtxt(buffer, size);
if (ctxt == NULL)
return (NULL);
htmlDefaultSAXHandlerInit();