Configuration: make sure the shared_sources table doesn't contain empty elements
authorRichard Levitte <levitte@openssl.org>
Tue, 13 Nov 2018 17:49:21 +0000 (18:49 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 13 Nov 2018 17:49:37 +0000 (18:49 +0100)
Fixes #7634

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7635)

Configure

index c84722a4e6ae64a7324754d5aeb74ae7365582f2..b3328928dfaf430eb1229b79b315af2b479f576b 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -2203,8 +2203,8 @@ EOF
             next unless defined($unified_info{includes}->{$dest}->{$k});
             my @incs = reverse @{$unified_info{includes}->{$dest}->{$k}};
             foreach my $obj (grep /\.o$/,
-                             (keys %{$unified_info{sources}->{$dest}},
-                              keys %{$unified_info{shared_sources}->{$dest}})) {
+                             (keys %{$unified_info{sources}->{$dest} // {}},
+                              keys %{$unified_info{shared_sources}->{$dest} // {}})) {
                 foreach my $inc (@incs) {
                     unshift @{$unified_info{includes}->{$obj}->{$k}}, $inc
                         unless grep { $_ eq $inc } @{$unified_info{includes}->{$obj}->{$k}};