Skip to content

Commit

Permalink
modified to assure proper user data is sent to structured error routine
Browse files Browse the repository at this point in the history
* error.c: modified to assure proper user data is sent to
  structured error routine (bug 142598)
  • Loading branch information
William M. Brack committed May 16, 2004
1 parent f055293 commit d233e39
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Sun May 16 11:11:13 HKT 2004 William Brack <[email protected]>

* error.c: modified to assure proper user data is sent to
structured error routine (bug 142598)

Sun May 16 03:18:52 CEST 2004 Daniel Veillard <[email protected]>

* catalog.c: a couple of large static variable which should really
Expand Down
8 changes: 4 additions & 4 deletions error.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
*/
Expand Down Expand Up @@ -512,7 +512,7 @@ __xmlRaiseError(xmlStructuredErrorFunc schannel,
}

/*
* Save the informations about the error
* Save the information about the error
*/
xmlResetError(to);
to->domain = domain;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d233e39

Please sign in to comment.