diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2022-08-22 13:33:35 +0200 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2022-08-22 13:48:59 +0200 |
commit | 38f04779f7afd758db6210123ec0b64c489595c5 (patch) | |
tree | 19e4e73eb8c99e1e542f79772b0e3cf5e2f7f158 /catalog.c | |
parent | c21e9cd5d955e4d8afa514e1f7736ce6a9bb8f2e (diff) | |
download | libxml2-38f04779f7afd758db6210123ec0b64c489595c5.tar.gz |
Fix HTML parser with threads and --without-legacy
If the legacy functions are disabled, the default "V1" HTML SAX handler
isn't initialized in threads other than the main thread.
htmlInitParserCtxt would later use the empty V1 SAX handler, resulting
in NULL documents.
Change htmlInitParserCtxt to initialize the HTML SAX handler by calling
xmlSAX2InitHtmlDefaultSAXHandler. This removes the ability to change the
default handler but is more in line with the XML parser which
initializes the SAX handler by calling xmlSAXVersion, ignoring the V1
default handler.
Fixes #399.
Diffstat (limited to 'catalog.c')
0 files changed, 0 insertions, 0 deletions