summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2011-02-23 14:23:25 +0000
committerDmitry V. Levin <ldv@altlinux.org>2011-02-23 14:23:25 +0000
commit8d77bff31887539b698555c4f424fcb436687645 (patch)
treef5668123a8d3d02e07f5ef00ef1dce20ac153a8c
parent5821ac6799390dfcfd6e7a122e6deced6fa454cd (diff)
downloadlibxml2-8d77bff31887539b698555c4f424fcb436687645.tar.gz
__xmlRaiseError: remove redundant schannel initialization
In case the domain is XML_FROM_VALID, ctxt and schannel are already initialized earlier with the same data
-rw-r--r--error.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/error.c b/error.c
index 34472eb..15b431e 100644
--- a/error.c
+++ b/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
*/