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



commit 2c8c772d6858d2f153af004349607ec1d87eecd5
Author: Rob Richards <rrichards cdatazone org>
Date:   Wed Apr 29 10:09:05 2009 -0400

    * parser.c: do not set error code in xmlNsWarn
---
 ChangeLog |    4 ++++
 parser.c  |    2 --
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 34cd89b..62ccabb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
 	* include/libxml/parser.h include/libxml/xmlwriter.h
diff --git a/parser.c b/parser.c
index efa64dd..5b04cf5 100644
--- a/parser.c
+++ b/parser.c
@@ -727,8 +727,6 @@ xmlNsWarn(xmlParserCtxtPtr ctxt, xmlParserErrors error,
     if ((ctxt != NULL) && (ctxt->disableSAX != 0) &&
         (ctxt->instate == XML_PARSER_EOF))
 	return;
-    if (ctxt != NULL)
-	ctxt->errNo = error;
     __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_NAMESPACE, error,
                     XML_ERR_WARNING, NULL, 0, (const char *) info1,
                     (const char *) info2, (const char *) info3, 0, 0, msg,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]