summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2011-02-23 14:23:25 (GMT)
committerDaniel Veillard <veillard@redhat.com>2011-02-23 14:23:25 (GMT)
commit1b9128bae737fa559f5e2c191d6679a856efbad9 (patch)
tree76f1cbf5043ae077e55e5ccde4b792d34db1f872
parent111d705c282e03e7202723c6c7e4499f8582bd4f (diff)
downloadlibxml2-1b9128bae737fa559f5e2c191d6679a856efbad9.tar.gz
libxml2-1b9128bae737fa559f5e2c191d6679a856efbad9.tar.xz
__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
*/