Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

__xmlRaiseError: remove redundant schannel initialization

In case the domain is XML_FROM_VALID, ctxt and schannel are already initialized
earlier with the same data
  • Loading branch information...
commit 1b9128bae737fa559f5e2c191d6679a856efbad9 1 parent 111d705
Dmitry V. Levin authored veillard committed
Showing with 0 additions and 8 deletions.
  1. +0 −8 error.c
View
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
*/
Please sign in to comment.
Something went wrong with that request. Please try again.