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:
@ -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>
|
Sun Dec 7 20:30:53 CET 2003 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* parser.c: attempt to fix #126211 ...
|
* parser.c: attempt to fix #126211 ...
|
||||||
|
2
error.c
2
error.c
@ -454,6 +454,8 @@ __xmlRaiseError(xmlStructuredErrorFunc schannel,
|
|||||||
if ((schannel == NULL) && (ctxt != NULL) && (ctxt->sax != NULL) &&
|
if ((schannel == NULL) && (ctxt != NULL) && (ctxt->sax != NULL) &&
|
||||||
(ctxt->sax->initialized == XML_SAX2_MAGIC))
|
(ctxt->sax->initialized == XML_SAX2_MAGIC))
|
||||||
schannel = ctxt->sax->serror;
|
schannel = ctxt->sax->serror;
|
||||||
|
if (schannel == NULL)
|
||||||
|
schannel = xmlStructuredError;
|
||||||
}
|
}
|
||||||
if ((domain == XML_FROM_VALID) &&
|
if ((domain == XML_FROM_VALID) &&
|
||||||
((channel == xmlParserValidityError) ||
|
((channel == xmlParserValidityError) ||
|
||||||
|
Reference in New Issue
Block a user