__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:
Dmitry V. Levin 2011-02-23 22:23:25 +08:00 committed by Daniel Veillard
parent 111d705c28
commit 1b9128bae7

View File

@ -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
*/