summaryrefslogtreecommitdiff
path: root/dh
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2019-08-17 10:23:35 +0000
committerNiels Thykier <niels@thykier.net>2019-08-17 10:23:35 +0000
commitd93a0c292100a4a95e57f3d44fd53f58bbce68d0 (patch)
tree58420793e7a5a1af223d7c6b95d9f053f7fce204 /dh
parent1377ddc1ad4a45e99a2a58cc215b863046eac9ea (diff)
downloaddebhelper-d93a0c292100a4a95e57f3d44fd53f58bbce68d0.tar.gz
dh: Fix use of uninitialized variable in compat 13
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh')
-rwxr-xr-xdh2
1 files changed, 1 insertions, 1 deletions
diff --git a/dh b/dh
index 57a418da..829759b8 100755
--- a/dh
+++ b/dh
@@ -837,7 +837,7 @@ while (@ARGV_orig) {
}
if ($opt =~ m/^(--[^=]++)(?:=.*)?$/ or $opt =~ m/^(-[^-])$/) {
my $optname = $1;
- if (length($optname) > 2 and (compat(12, 1) or m/^-[^-][^=]/)) {
+ if (length($optname) > 2 and (compat(12, 1) or $optname =~ m/^-[^-][^=]/)) {
# We cannot optimize bundled options but we can optimize a single
# short option with an explicit parameter (-B=F is ok, -BF is not)
# In compat 12 or earlier, we also punt on long options due to