[libxml2] xmlCtxtResetLastError should reset ctxt->errNo



commit 26b06874353941ea9eb5540b293b28a97d2b5cb0
Author: Daniel Veillard <veillard redhat com>
Date:   Mon Mar 15 15:59:07 2010 +0100

    xmlCtxtResetLastError should reset ctxt->errNo
    
    just fix it !

 error.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/error.c b/error.c
index 814e4ea..7508d41 100644
--- a/error.c
+++ b/error.c
@@ -929,6 +929,7 @@ xmlCtxtResetLastError(void *ctx)
 
     if (ctxt == NULL)
         return;
+    ctxt->errNo = XML_ERR_OK;
     if (ctxt->lastError.code == XML_ERR_OK)
         return;
     xmlResetError(&ctxt->lastError);



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