1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +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

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