diff options
author | Matt Caswell <matt@openssl.org> | 2020-11-05 14:56:45 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-11-06 17:20:54 +0000 |
commit | 3eb84c62859591eccab32fababe0314942e09461 (patch) | |
tree | 3db304099aa76bbf83b4bad8c18f6541d9fd88c1 /util/perl | |
parent | b9b2135d22b93f949fd77f293925fc66158416ff (diff) |
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 <levitte@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/13327)
Diffstat (limited to 'util/perl')
-rwxr-xr-x | util/perl/OpenSSL/config.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/perl/OpenSSL/config.pm b/util/perl/OpenSSL/config.pm index c2dbd33bd1..e494ddd969 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 { |