From 3eb84c62859591eccab32fababe0314942e09461 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Thu, 5 Nov 2020 14:56:45 +0000 Subject: [PATCH] Don't complain about uninitialized values when running Configure If a system understands `uname -X` then the Configure script will attempt to use uninitialized values. Reviewed-by: Richard Levitte Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/13327) --- util/perl/OpenSSL/config.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/perl/OpenSSL/config.pm b/util/perl/OpenSSL/config.pm index c2dbd33bd13..e494ddd969e 100755 --- a/util/perl/OpenSSL/config.pm +++ b/util/perl/OpenSSL/config.pm @@ -202,8 +202,8 @@ sub is_sco_uname { } close UNAME; return "" if $line eq ''; - my @fields = split($line); - return $fields[2]; + my @fields = split(/\s+/, $line); + return $fields[2] // ''; } sub get_sco_type { -- 2.47.3