mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
Dohhh ! Daniel
Dohhh ! Daniel
This commit is contained in:
10
parser.c
10
parser.c
@@ -392,12 +392,12 @@ static void
|
|||||||
xmlWarningMsg(xmlParserCtxtPtr ctxt, xmlParserErrors error,
|
xmlWarningMsg(xmlParserCtxtPtr ctxt, xmlParserErrors error,
|
||||||
const char *msg, const xmlChar *str1, const xmlChar *str2)
|
const char *msg, const xmlChar *str1, const xmlChar *str2)
|
||||||
{
|
{
|
||||||
xmlStructuredErrorFunc schannel = NULL
|
xmlStructuredErrorFunc schannel = NULL;
|
||||||
|
|
||||||
ctxt->errNo = error;
|
ctxt->errNo = error;
|
||||||
if ((ctxt->sax != NULL) && (ctxt->sax->initialized == XML_SAX2_MAGIC))
|
if ((ctxt->sax != NULL) && (ctxt->sax->initialized == XML_SAX2_MAGIC))
|
||||||
schannel = ctxt->sax->serror
|
schannel = ctxt->sax->serror;
|
||||||
__xmlRaiseError(schannel
|
__xmlRaiseError(schannel,
|
||||||
(ctxt->sax) ? ctxt->sax->warning : NULL,
|
(ctxt->sax) ? ctxt->sax->warning : NULL,
|
||||||
ctxt->userData,
|
ctxt->userData,
|
||||||
ctxt, NULL, XML_FROM_PARSER, error,
|
ctxt, NULL, XML_FROM_PARSER, error,
|
||||||
@@ -419,10 +419,10 @@ static void
|
|||||||
xmlValidityError(xmlParserCtxtPtr ctxt, xmlParserErrors error,
|
xmlValidityError(xmlParserCtxtPtr ctxt, xmlParserErrors error,
|
||||||
const char *msg, const xmlChar *str1)
|
const char *msg, const xmlChar *str1)
|
||||||
{
|
{
|
||||||
xmlStructuredErrorFunc schannel = NULL
|
xmlStructuredErrorFunc schannel = NULL;
|
||||||
ctxt->errNo = error;
|
ctxt->errNo = error;
|
||||||
if ((ctxt->sax != NULL) && (ctxt->sax->initialized == XML_SAX2_MAGIC))
|
if ((ctxt->sax != NULL) && (ctxt->sax->initialized == XML_SAX2_MAGIC))
|
||||||
schannel = ctxt->sax->serror
|
schannel = ctxt->sax->serror;
|
||||||
__xmlRaiseError(schannel,
|
__xmlRaiseError(schannel,
|
||||||
ctxt->vctxt.error, ctxt->vctxt.userData,
|
ctxt->vctxt.error, ctxt->vctxt.userData,
|
||||||
ctxt, NULL, XML_FROM_DTD, error,
|
ctxt, NULL, XML_FROM_DTD, error,
|
||||||
|
|||||||
Reference in New Issue
Block a user