Code

Added perl-uninitialized-var.dpatch.
authorSebastian Harl <sh@tokkee.org>
Mon, 1 Dec 2008 20:27:23 +0000 (21:27 +0100)
committerSebastian Harl <sh@tokkee.org>
Mon, 1 Dec 2008 20:27:23 +0000 (21:27 +0100)
Upstream patch to fix an uninitialized variable warning causing a FTBFS
because of -Werror.

debian/changelog
debian/patches/00list
debian/patches/perl-uninitialized-var.dpatch [new file with mode: 0644]

index d1bbc0f1bce0f975a9499bee6082c180288723be..7d7e203845228755517951876f94998d76c161ba 100644 (file)
@@ -19,6 +19,8 @@ collectd (4.5.1-1) experimental; urgency=low
     - Disabled onewire plugin - owfs is not yet available in Debian.
     - Install contrib/snmp-probe-host.px to /usr/share/doc/collectd/examples/.
   * debian/patches:
+    - Added perl-uninitialized-var.dpatch - upstream patch to fix an
+      uninitialized variable warning causing a FTBFS because of -Werror.
     - Removed myplugin_strcpy.dpatch - applied upstream.
     - Removed perl_deadlock.dpatch - included upstream.
     - Removed memory_libstatgrab.dpatch - included upstream.
@@ -27,7 +29,7 @@ collectd (4.5.1-1) experimental; urgency=low
     - Removed memcached_fdleak.dpatch - included upstream.
     - Removed memcached_timeout.dpatch - included upstream.
 
- -- Sebastian Harl <sh@tokkee.org>  Mon, 01 Dec 2008 21:11:59 +0100
+ -- Sebastian Harl <sh@tokkee.org>  Mon, 01 Dec 2008 21:25:58 +0100
 
 collectd (4.4.2-2) unstable; urgency=low
 
index 332b35c8333c22b54c6ead8e9d0f6750c3bfbc7f..12d1fc0f24ed08f51f27a9d18c8ab20e136843d5 100644 (file)
@@ -1,3 +1,4 @@
 rrd_filter_path.dpatch
 collection_conf_path.dpatch
+perl-uninitialized-var.dpatch
 
diff --git a/debian/patches/perl-uninitialized-var.dpatch b/debian/patches/perl-uninitialized-var.dpatch
new file mode 100644 (file)
index 0000000..afac436
--- /dev/null
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## perl-uninitialized-var.dpatch by Ulrich Habel <rhaen@netbsd.org>
+##
+## DP: Fixed an uninitialized variable warning.
+
+@DPATCH@
+
+diff a/src/perl.c b/src/perl.c
+--- a/src/perl.c
++++ b/src/perl.c
+@@ -1790,7 +1790,7 @@ static int perl_config (oconfig_item_t *ci)
+       for (i = 0; i < ci->children_num; ++i) {
+               oconfig_item_t *c = ci->children + i;
+-              int current_status;
++              int current_status = 0;
+               if (NULL != perl_threads)
+                       aTHX = PERL_GET_CONTEXT;