summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2004-05-17 06:56:59 +0000
committerMike Hommey <mh@glandium.org>2004-05-17 06:56:59 +0000
commitd4e028c96af89ade493b440d4f2de6b684c03a06 (patch)
tree4b74b3cd4b14524309bc5a3e776d81d4bbc5efe4 /error.c
parent81bcf076ea11e114a60e429338a15748066de163 (diff)
downloadlibxml2-d4e028c96af89ade493b440d4f2de6b684c03a06.tar.gz
Load /tmp/tmp.QVLX5b/libxml2-2.6.10 intoupstream/2.6.10
packages/libxml2/branches/upstream/current.
Diffstat (limited to 'error.c')
-rw-r--r--error.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/error.c b/error.c
index bd9b324..05cc5b3 100644
--- a/error.c
+++ b/error.c
@@ -87,7 +87,7 @@ initGenericErrorDefaultFunc(xmlGenericErrorFunc * handler)
if (handler == NULL)
xmlGenericError = xmlGenericErrorDefaultFunc;
else
- (*handler) = xmlGenericErrorDefaultFunc;
+ xmlGenericError = (*handler);
}
/**
@@ -410,7 +410,7 @@ xmlReportError(xmlErrorPtr err, xmlParserCtxtPtr ctxt, const char *str,
/**
* __xmlRaiseError:
- * @channel: the structured callback channel
+ * @schannel: the structured callback channel
* @channel: the old callback channel
* @data: the callback data
* @ctx: the parser context or NULL
@@ -428,7 +428,7 @@ xmlReportError(xmlErrorPtr err, xmlParserCtxtPtr ctxt, const char *str,
* @msg: the message to display/transmit
* @...: extra parameters for the message display
*
- * Update teh appropriate global or contextual error structure,
+ * Update the appropriate global or contextual error structure,
* then forward the error message down the parser or generic
* error callback handler
*/
@@ -512,7 +512,7 @@ __xmlRaiseError(xmlStructuredErrorFunc schannel,
}
/*
- * Save the informations about the error
+ * Save the information about the error
*/
xmlResetError(to);
to->domain = domain;
@@ -543,7 +543,7 @@ __xmlRaiseError(xmlStructuredErrorFunc schannel,
/*
* Find the callback channel.
*/
- if ((ctxt != NULL) && (channel == NULL)) {
+ if ((ctxt != NULL) && (channel == NULL) && (xmlStructuredError == NULL)) {
if (level == XML_ERR_WARNING)
channel = ctxt->sax->warning;
else