[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/01: lib/Lintian/Collect/Package.pm: Fix "Use of uninitialized value in string ne" warnings that would have appeared as part of the src-orig-index handling in 2.5.66. (Closes: #887428)



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

lamby pushed a commit to branch master
in repository lintian.

commit 1d7d5f746fe774c5e0d6bde66bbcdb2d181f73d8
Author: Chris Lamb <lamby@debian.org>
Date:   Wed Jan 17 08:57:27 2018 +1100

    lib/Lintian/Collect/Package.pm: Fix "Use of uninitialized value in string ne" warnings that would have appeared as part of the src-orig-index handling in 2.5.66. (Closes: #887428)
---
 debian/changelog               | 5 +++++
 lib/Lintian/Collect/Package.pm | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 6eaca4c..f4ec5fe 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,11 @@ lintian (2.5.71) UNRELEASED; urgency=medium
 
   XXX: generate tag summary
 
+  * lib/Lintian/Collect/Package.pm:
+    + [CL] Fix "Use of uninitialized value in string ne" warnings that
+      would have appeared as part of the src-orig-index handling in 2.5.66.
+      (Closes: #887428)
+
  -- Chris Lamb <lamby@debian.org>  Tue, 16 Jan 2018 18:03:37 +1100
 
 lintian (2.5.70) unstable; urgency=medium
diff --git a/lib/Lintian/Collect/Package.pm b/lib/Lintian/Collect/Package.pm
index 8a12dee..5b95f60 100644
--- a/lib/Lintian/Collect/Package.pm
+++ b/lib/Lintian/Collect/Package.pm
@@ -576,7 +576,7 @@ sub _fetch_index_data {
                   | Lintian::Path::TYPE_HARDLINK;
                 $le->{link} = $target;
             }
-            if ($target ne $e->{name}) {
+            if (defined($target) and $target ne $e->{name}) {
                 $idxh{$target}{'_path_info'}
                   = ($idxh{$target}{'_path_info'}
                       & ~Lintian::Path::TYPE_HARDLINK)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: