Configure: avoid uninit data in configdata.pm
authorRichard Levitte <levitte@openssl.org>
Sat, 17 Feb 2018 06:33:17 +0000 (07:33 +0100)
committerRichard Levitte <levitte@openssl.org>
Sat, 17 Feb 2018 06:33:17 +0000 (07:33 +0100)
Fixes #5394

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5399)

Configure

index 9835cf066373832f9fa6c64829c3dd5d36351ddf..0cc554f652e14775932ca53cb7c22ae51503c528 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -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) {