[libxml2] Fix missing break on last() function for attributes



commit 10ec19ab0a49936ca8ca0d6962d24d3f889960a5
Author: dcb <dcb314 hotmail com>
Date:   Thu May 2 16:11:46 2013 +0800

    Fix missing break on last() function for attributes
    
    pointed out by cppcheck

 python/libxml.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/python/libxml.c b/python/libxml.c
index 03cfb9f..3338b83 100644
--- a/python/libxml.c
+++ b/python/libxml.c
@@ -2683,6 +2683,7 @@ libxml_last(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
                 xmlAttrPtr attr = (xmlAttrPtr) cur;
 
                 res = attr->last;
+               break;
             }
         default:
             res = NULL;


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