diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2011-02-23 14:23:25 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2011-02-23 14:23:25 +0000 |
commit | 8d77bff31887539b698555c4f424fcb436687645 (patch) | |
tree | f5668123a8d3d02e07f5ef00ef1dce20ac153a8c | |
parent | 5821ac6799390dfcfd6e7a122e6deced6fa454cd (diff) | |
download | libxml2-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.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -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 */ |