[libxml-commonns-perl] 01/04: Add a patch to fix an uninitialized value warning.

Niko Tyni ntyni at moszumanska.debian.org
Wed Sep 17 21:23:02 UTC 2014


This is an automated email from the git hooks/post-receive script.

ntyni pushed a commit to branch master
in repository libxml-commonns-perl.

commit 39caf86e1da9bd582394a1a691d8428f8c743be9
Author: Niko Tyni <ntyni at debian.org>
Date:   Thu Sep 18 00:13:44 2014 +0300

    Add a patch to fix an uninitialized value warning.
---
 ...ix-a-warning-about-an-uninitialized-value.patch | 26 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 27 insertions(+)

diff --git a/debian/patches/0001-Fix-a-warning-about-an-uninitialized-value.patch b/debian/patches/0001-Fix-a-warning-about-an-uninitialized-value.patch
new file mode 100644
index 0000000..84492be
--- /dev/null
+++ b/debian/patches/0001-Fix-a-warning-about-an-uninitialized-value.patch
@@ -0,0 +1,26 @@
+From 180064b82e1725966273e3b62b7a8fcdc7eea55a Mon Sep 17 00:00:00 2001
+From: Niko Tyni <ntyni at debian.org>
+Date: Thu, 18 Sep 2014 00:00:29 +0300
+Subject: [PATCH] Fix a warning about an uninitialized value
+
+Bug: https://rt.cpan.org/Public/Bug/Display.html?id=98952
+---
+ lib/XML/CommonNS.pm | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/XML/CommonNS.pm b/lib/XML/CommonNS.pm
+index e1cca02..8e253d0 100644
+--- a/lib/XML/CommonNS.pm
++++ b/lib/XML/CommonNS.pm
+@@ -52,7 +52,7 @@ sub import {
+ 	my @opt = @_;
+ 
+ 	no strict 'refs';
+-	@opt = keys %NS if $opt[0] eq ':all';
++	@opt = keys %NS if @opt and $opt[0] eq ':all';
+ 	for my $exp (@opt) {
+ 		die "No namespace available for key $exp" unless exists $NS{$exp};
+ 		__PACKAGE__->uri($exp);
+-- 
+2.1.0
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d4b4a92
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Fix-a-warning-about-an-uninitialized-value.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libxml-commonns-perl.git



More information about the Pkg-perl-cvs-commits mailing list