summaryrefslogtreecommitdiff
path: root/packages/libmrss/files/fix-memleaks.patch
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2007-04-01 20:51:47 +0000
committerHolger Freyther <zecke@selfish.org>2007-04-01 20:51:47 +0000
commita668b728f034349c1204be9be1b363b1cb3aefa2 (patch)
tree8e68da8109968be6159feaffce159eb6cebcf38c /packages/libmrss/files/fix-memleaks.patch
parent470744264bf335b0acdc5e9db2b35f1bda73b72d (diff)
packages/libmrss: Add a memory leak patch and bump the PR
Diffstat (limited to 'packages/libmrss/files/fix-memleaks.patch')
-rw-r--r--packages/libmrss/files/fix-memleaks.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/libmrss/files/fix-memleaks.patch b/packages/libmrss/files/fix-memleaks.patch
new file mode 100644
index 0000000000..c88570c72e
--- /dev/null
+++ b/packages/libmrss/files/fix-memleaks.patch
@@ -0,0 +1,17 @@
+Index: libmrss-0.17/src/mrss_parser.c
+===================================================================
+--- libmrss-0.17.orig/src/mrss_parser.c 2007-04-01 22:23:22.000000000 +0200
++++ libmrss-0.17/src/mrss_parser.c 2007-04-01 22:23:42.000000000 +0200
+@@ -186,10 +186,10 @@
+ cat->allocated = 1;
+ cat->category = c;
+
+- if (!(c = nxmle_find_attribute (cur, "scheme", NULL)))
++ if (c = nxmle_find_attribute (cur, "scheme", NULL))
+ cat->domain = c;
+
+- if (!(c = nxmle_find_attribute (cur, "label", NULL)))
++ if (c = nxmle_find_attribute (cur, "label", NULL))
+ cat->label = c;
+
+ if (!*category)