Commit 02d3c6ae authored by Richard Levitte's avatar Richard Levitte
Browse files

Configure: ensure empty arrays aren't created inadvertently



Just refering to a hash table element as an array reference will
automatically create that element.  Avoid that by defaulting to
a separate empty array reference.

Fixes #7543

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

(cherry picked from commit 3bed01a0)
parent 7bd5405a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2257,7 +2257,7 @@ EOF
            my %dirs = ();
            my $pd = dirname($product);

            foreach (@{$unified_info{sources}->{$product}},
            foreach (@{$unified_info{sources}->{$product} // []},
                     @{$unified_info{shared_sources}->{$product} // []}) {
                my $d = dirname($_);