From: Richard Levitte Date: Thu, 1 Nov 2018 12:55:32 +0000 (+0100) Subject: Configure: ensure empty arrays aren't created inadvertently X-Git-Tag: openssl-3.0.0-alpha1~2969 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=3bed01a09071fb289484dfd265f0a8a991537282;hp=54f3e855d48d08e9623a7ced715e263352c95274 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: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/7544) --- diff --git a/Configure b/Configure index bf0c2d5f97..f46be6b4e5 100755 --- a/Configure +++ b/Configure @@ -2344,7 +2344,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($_);