Configure: avoid uninit data in configdata.pm

Fixes #5394

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5399)
This commit is contained in:
Richard Levitte 2018-02-17 07:33:17 +01:00
parent 856f231bd2
commit 1d2c6b7d4a

View file

@ -2382,7 +2382,8 @@ _____
my $longest2 = 0;
foreach my $what (@disablables) {
$longest = length($what) if $longest < length($what);
$longest2 = length($disabled{$what}) if $longest2 < length($disabled{$what});
$longest2 = length($disabled{$what})
if $disabled{$what} && $longest2 < length($disabled{$what});
}
print "\nEnabled features:\n\n";
foreach my $what (@disablables) {