From: Matt Caswell Date: Thu, 5 Nov 2020 14:56:45 +0000 (+0000) Subject: Don't complain about uninitialized values when running Configure X-Git-Tag: openssl-3.0.0-alpha9~165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3eb84c62859591eccab32fababe0314942e09461;p=thirdparty%2Fopenssl.git 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) --- 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 {