Commit fded7bf9 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

fixed __xmlRaiseError to use structured error handlers defined by

* error.c: fixed __xmlRaiseError to use structured error handlers
  defined by xmlSetStructuredErrorFunc(), fixes bug #126211
Daniel
parent 43caefb3
Sun Dec 7 22:27:31 CET 2003 Daniel Veillard <daniel@veillard.com>
* error.c: fixed __xmlRaiseError to use structured error handlers
defined by xmlSetStructuredErrorFunc(), fixes bug #126211
Sun Dec 7 20:30:53 CET 2003 Daniel Veillard <daniel@veillard.com>
 
* parser.c: attempt to fix #126211 ...
......
......@@ -454,6 +454,8 @@ __xmlRaiseError(xmlStructuredErrorFunc schannel,
if ((schannel == NULL) && (ctxt != NULL) && (ctxt->sax != NULL) &&
(ctxt->sax->initialized == XML_SAX2_MAGIC))
schannel = ctxt->sax->serror;
if (schannel == NULL)
schannel = xmlStructuredError;
}
if ((domain == XML_FROM_VALID) &&
((channel == xmlParserValidityError) ||
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment