]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Don't complain about uninitialized values when running Configure
authorMatt Caswell <matt@openssl.org>
Thu, 5 Nov 2020 14:56:45 +0000 (14:56 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 6 Nov 2020 17:20:54 +0000 (17:20 +0000)
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)

util/perl/OpenSSL/config.pm

index c2dbd33bd1319acc680fecd18b2c8316baca8833..e494ddd969eba7635515afce3dd4fb97bec0e423 100755 (executable)
@@ -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 {