From 02d3c6aecc646872af1286144ce8af0693a9f4e3 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 1 Nov 2018 13:55:32 +0100 Subject: [PATCH] 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) (cherry picked from commit 3bed01a09071fb289484dfd265f0a8a991537282) --- Configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Configure b/Configure index 21811113c6..c84722a4e6 100755 --- a/Configure +++ b/Configure @@ -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($_); -- 2.25.1