[debhelper-devel] [Git][debian/debhelper][master] dh_gencontrol: Fix uninitialized value warning
Niels Thykier
gitlab at salsa.debian.org
Sun Feb 18 08:12:49 UTC 2018
Niels Thykier pushed to branch master at Debian / debhelper
Commits:
0bbd3503 by Niels Thykier at 2018-02-18T08:09:58+00:00
dh_gencontrol: Fix uninitialized value warning
Regression introduced in commit
6d5f3b79c743ee8b466813ea3e62b4d492fc598c.
Signed-off-by: Niels Thykier <niels at thykier.net>
- - - - -
2 changed files:
- debian/changelog
- dh_gencontrol
Changes:
=====================================
debian/changelog
=====================================
--- a/debian/changelog
+++ b/debian/changelog
@@ -19,6 +19,11 @@ debhelper (11.1.5) UNRELEASED; urgency=medium
* makefile.pm: Synchronize output from make (via -O) when
make runs in parallel. Thanks to Goswin von Brederlow for
the suggestion. (Closes: #768791)
+ * dh_gencontrol: Avoid uninitialized value warning when there
+ are no build-ids (e.g. because the builder disabled the
+ dbgsym building via DEB_BUILD_OPTIONS). This regression
+ was introduced in 11.1. Thanks to Christian Marillat for
+ reporting the bug. (Closes: #890736)
-- Niels Thykier <niels at thykier.net> Sun, 04 Feb 2018 18:03:34 +0000
=====================================
dh_gencontrol
=====================================
--- a/dh_gencontrol
+++ b/dh_gencontrol
@@ -196,6 +196,7 @@ sub read_dbgsym_migration {
sub read_dbgsym_build_ids {
my $res = read_dbgsym_file('dbgsym-build-ids', @_);
my (%seen, @unique);
+ return '' if not defined($res);
for my $id (split(' ', $res)) {
next if $seen{$id}++;
push(@unique, $id);
View it on GitLab: https://salsa.debian.org/debian/debhelper/commit/0bbd3503ce8cb10f3c88079a90eced86a3d12f5e
---
View it on GitLab: https://salsa.debian.org/debian/debhelper/commit/0bbd3503ce8cb10f3c88079a90eced86a3d12f5e
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20180218/6a5c7f5a/attachment-0001.html>
More information about the debhelper-devel
mailing list