From 2c8c772d6858d2f153af004349607ec1d87eecd5 Mon Sep 17 00:00:00 2001 From: Rob Richards Date: Wed, 29 Apr 2009 10:09:05 -0400 Subject: [PATCH] * 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 34cd89b5..62ccabb2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Apr 29 16:09:38 CEST 2009 Rob Richards + + * parser.c: do not set error code in xmlNsWarn + Wed Apr 15 11:18:24 CEST 2009 Daniel Veillard * include/libxml/parser.h include/libxml/xmlwriter.h diff --git a/parser.c b/parser.c index efa64dde..5b04cf58 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,