aboutsummaryrefslogtreecommitdiffstats
path: root/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/parser.c b/parser.c
index 15a0f691..df21992f 100644
--- a/parser.c
+++ b/parser.c
@@ -10186,7 +10186,8 @@ static int xmlParserInitialized = 0;
void
xmlInitParser(void) {
- if (xmlParserInitialized) return;
+ if (xmlParserInitialized != 0)
+ return;
initGenericErrorDefaultFunc(NULL);
xmlInitThreads();