mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
parser: Don't call *DefaultSAXHandlerInit from xmlInitParser
Change the default handler definitions to match the result after calling the initialization functions. This makes sure that no thread-local variables are accessed when calling xmlInitParser.
This commit is contained in:
2
parser.c
2
parser.c
@@ -14498,14 +14498,12 @@ xmlInitParser(void) {
|
||||
xmlInitMemory();
|
||||
xmlInitializeDict();
|
||||
xmlInitCharEncodingHandlers();
|
||||
xmlDefaultSAXHandlerInit();
|
||||
xmlRegisterDefaultInputCallbacks();
|
||||
#ifdef LIBXML_OUTPUT_ENABLED
|
||||
xmlRegisterDefaultOutputCallbacks();
|
||||
#endif /* LIBXML_OUTPUT_ENABLED */
|
||||
#ifdef LIBXML_HTML_ENABLED
|
||||
htmlInitAutoClose();
|
||||
htmlDefaultSAXHandlerInit();
|
||||
#endif
|
||||
#if defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
|
||||
xmlXPathInit();
|
||||
|
||||
Reference in New Issue
Block a user