mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
Don't initialize SAX handler in htmlReadMemory
The SAX handler is already initialized when creating the parser context.
This commit is contained in:
@ -6995,9 +6995,6 @@ htmlReadMemory(const char *buffer, int size, const char *URL, const char *encodi
|
||||
ctxt = htmlCreateMemoryParserCtxt(buffer, size);
|
||||
if (ctxt == NULL)
|
||||
return (NULL);
|
||||
htmlDefaultSAXHandlerInit();
|
||||
if (ctxt->sax != NULL)
|
||||
memcpy(ctxt->sax, &htmlDefaultSAXHandler, sizeof(xmlSAXHandlerV1));
|
||||
return (htmlDoRead(ctxt, URL, encoding, options, 0));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user