mirror of
https://github.com/darlinghq/darling-libxml2.git
synced 2025-02-12 13:38:37 +00:00
__xmlRaiseError: remove redundant schannel initialization
In case the domain is XML_FROM_VALID, ctxt and schannel are already initialized earlier with the same data
This commit is contained in:
parent
111d705c28
commit
1b9128bae7
8
error.c
8
error.c
@ -475,14 +475,6 @@ __xmlRaiseError(xmlStructuredErrorFunc schannel,
|
||||
if (schannel != NULL)
|
||||
data = xmlStructuredErrorContext;
|
||||
}
|
||||
if ((domain == XML_FROM_VALID) &&
|
||||
((channel == xmlParserValidityError) ||
|
||||
(channel == xmlParserValidityWarning))) {
|
||||
ctxt = (xmlParserCtxtPtr) ctx;
|
||||
if ((schannel == NULL) && (ctxt != NULL) && (ctxt->sax != NULL) &&
|
||||
(ctxt->sax->initialized == XML_SAX2_MAGIC))
|
||||
schannel = ctxt->sax->serror;
|
||||
}
|
||||
/*
|
||||
* Formatting the message
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user