summaryrefslogtreecommitdiff
path: root/debian/patches/0004-Fix-missing-break-on-last-function-for-attributes.patch
diff options
context:
space:
mode:
authorRaphaël Hertzog <hertzog@debian.org>2015-08-25 22:26:52 +0200
committerRaphaël Hertzog <hertzog@debian.org>2015-08-25 22:26:52 +0200
commit3b14c3fd6410716d407178e48972b1c1bea48c29 (patch)
tree232c9c894b45099f211728742569111738b17e16 /debian/patches/0004-Fix-missing-break-on-last-function-for-attributes.patch
parentedefea9d480751896e380c7bfc92517c9e39039d (diff)
downloadlibxml2-3b14c3fd6410716d407178e48972b1c1bea48c29.tar.gz
Revert "Remove no-longer-needed upstream patches"
This reverts commit 4a5e25fad6693afda89b3826f73e83d826618863.
Diffstat (limited to 'debian/patches/0004-Fix-missing-break-on-last-function-for-attributes.patch')
-rw-r--r--debian/patches/0004-Fix-missing-break-on-last-function-for-attributes.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/patches/0004-Fix-missing-break-on-last-function-for-attributes.patch b/debian/patches/0004-Fix-missing-break-on-last-function-for-attributes.patch
new file mode 100644
index 0000000..cff8b72
--- /dev/null
+++ b/debian/patches/0004-Fix-missing-break-on-last-function-for-attributes.patch
@@ -0,0 +1,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;