mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-08-01 10:06:59 +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);
|
ctxt = htmlCreateMemoryParserCtxt(buffer, size);
|
||||||
if (ctxt == NULL)
|
if (ctxt == NULL)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
htmlDefaultSAXHandlerInit();
|
|
||||||
if (ctxt->sax != NULL)
|
|
||||||
memcpy(ctxt->sax, &htmlDefaultSAXHandler, sizeof(xmlSAXHandlerV1));
|
|
||||||
return (htmlDoRead(ctxt, URL, encoding, options, 0));
|
return (htmlDoRead(ctxt, URL, encoding, options, 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user