1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-30 22:43:14 +03:00

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
This commit is contained in:
Daniel Veillard
2003-12-07 21:30:45 +00:00
parent 43caefb336
commit fded7bf91b
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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 ...

View File

@ -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) ||