1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-31 21:50:33 +03:00

* parser.c: do not set error code in xmlNsWarn

This commit is contained in:
Rob Richards
2009-04-29 10:09:05 -04:00
parent f076f348c4
commit 2c8c772d68
2 changed files with 4 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
Wed Apr 29 16:09:38 CEST 2009 Rob Richards <rrichards@cdatazone.org>
* parser.c: do not set error code in xmlNsWarn
Wed Apr 15 11:18:24 CEST 2009 Daniel Veillard <daniel@veillard.com> Wed Apr 15 11:18:24 CEST 2009 Daniel Veillard <daniel@veillard.com>
* include/libxml/parser.h include/libxml/xmlwriter.h * include/libxml/parser.h include/libxml/xmlwriter.h

View File

@@ -727,8 +727,6 @@ xmlNsWarn(xmlParserCtxtPtr ctxt, xmlParserErrors error,
if ((ctxt != NULL) && (ctxt->disableSAX != 0) && if ((ctxt != NULL) && (ctxt->disableSAX != 0) &&
(ctxt->instate == XML_PARSER_EOF)) (ctxt->instate == XML_PARSER_EOF))
return; return;
if (ctxt != NULL)
ctxt->errNo = error;
__xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_NAMESPACE, error, __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_NAMESPACE, error,
XML_ERR_WARNING, NULL, 0, (const char *) info1, XML_ERR_WARNING, NULL, 0, (const char *) info1,
(const char *) info2, (const char *) info3, 0, 0, msg, (const char *) info2, (const char *) info3, 0, 0, msg,