summaryrefslogtreecommitdiff
path: root/debian/patches/0004-Fix-missing-break-on-last-function-for-attributes.patch
blob: 5dabed68889eb0812b3147592ae2110085821c23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: dcb <dcb314@hotmail.com>
Date: Thu, 2 May 2013 08:11:46 +0000
Subject: Fix missing break on last() function for attributes

pointed out by cppcheck
---
 python/libxml.c | 1 +
 1 file changed, 1 insertion(+)

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;