summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'error.c')
-rw-r--r--error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/error.c b/error.c
index bd9b3246..897f08d7 100644
--- a/error.c
+++ b/error.c
@@ -87,7 +87,7 @@ initGenericErrorDefaultFunc(xmlGenericErrorFunc * handler)
if (handler == NULL)
xmlGenericError = xmlGenericErrorDefaultFunc;
else
- (*handler) = xmlGenericErrorDefaultFunc;
+ xmlGenericError = (*handler);
}
/**