[debhelper-devel] [debhelper] 02/03: dh_builddeb: Avoid using an undefined value as an ARRAY reference

Niels Thykier nthykier at moszumanska.debian.org
Sat Nov 11 14:09:51 UTC 2017


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

nthykier pushed a commit to branch master
in repository debhelper.

commit 1d0a3cd604ce374c30e1ed52f15aabbca50d80cb
Author: Niels Thykier <niels at thykier.net>
Date:   Sat Nov 11 13:56:57 2017 +0000

    dh_builddeb: Avoid using an undefined value as an ARRAY reference
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 debian/changelog               | 2 ++
 lib/Debian/Debhelper/Dh_Lib.pm | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 6e91d5c..6f5acb4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ debhelper (10.10.7) UNRELEASED; urgency=medium
   * dh_strip: Fix a regression that caused debug symbols for
     executables to be discarded instead of included into
     debug packages.
+  * Dh_Lib: Ensure that $dh{U_PARAMS} is always defined as a
+    list.  Thanks to Adrian Bunk for the bug report.
 
  -- Niels Thykier <niels at thykier.net>  Sat, 11 Nov 2017 13:47:37 +0000
 
diff --git a/lib/Debian/Debhelper/Dh_Lib.pm b/lib/Debian/Debhelper/Dh_Lib.pm
index f9dba9b..37be1cc 100644
--- a/lib/Debian/Debhelper/Dh_Lib.pm
+++ b/lib/Debian/Debhelper/Dh_Lib.pm
@@ -179,6 +179,8 @@ sub init {
 	if (! exists $dh{ERROR_HANDLER} || ! defined $dh{ERROR_HANDLER}) {
 		$dh{ERROR_HANDLER}='exit \$?';
 	}
+
+	$dh{U_PARAMS} //= [];
 }
 
 # Run at exit. Add the command to the log files for the packages it acted

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




More information about the debhelper-devel mailing list