summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authormadduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464>2007-05-21 12:42:01 +0000
committermadduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464>2007-05-21 12:42:01 +0000
commit998aad90086d1753490d23c17b5d8fce8fe95c9b (patch)
tree8f68d194098eef147414a1b15be788554f185b6a /debian/patches
parent33c9ece460eddd7872bd40c25bc8db3dbf07a043 (diff)
fix compile warning
Diffstat (limited to 'debian/patches')
-rwxr-xr-xdebian/patches/99-init-avail-FIX.dpatch19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/patches/99-init-avail-FIX.dpatch b/debian/patches/99-init-avail-FIX.dpatch
new file mode 100755
index 00000000..1c07a4ae
--- /dev/null
+++ b/debian/patches/99-init-avail-FIX.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 99-init-avail-FIX.dpatch by martin f. krafft <madduck@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad mdadm-2.6.2~/Detail.c mdadm-2.6.2/Detail.c
+--- mdadm-2.6.2~/Detail.c 2007-05-21 06:25:50.000000000 +0200
++++ mdadm-2.6.2/Detail.c 2007-05-21 14:41:40.000000000 +0200
+@@ -59,7 +59,7 @@
+ void *super = NULL;
+ int rv = test ? 4 : 1;
+ int avail_disks = 0;
+- char *avail;
++ char *avail = NULL;
+
+ if (fd < 0) {
+ fprintf(stderr, Name ": cannot open %s: %s\n",