]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Make undef'd counts zero by default.
authorRich Salz <rsalz@akamai.com>
Tue, 25 May 2021 17:42:45 +0000 (13:42 -0400)
committerPauli <pauli@openssl.org>
Sat, 29 May 2021 06:09:08 +0000 (16:09 +1000)
Fixes #15409

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15467)

util/mknum.pl

index f661a9122d184f4b48a79a8c76c026ad1aaf8e7a..92435a871221836e0b7919174b6fc657929b28b3 100644 (file)
@@ -139,6 +139,7 @@ if ($checkexist) {
     if ($dropped) {
         print STDERR "${ordinals_file}: Dropped $dropped new symbols\n";
     }
+    $stats{unassigned} = 0 unless defined $stats{unassigned};
     $unassigned = $stats{unassigned} - $dropped;
     if ($unassigned) {
         my $symbol = $unassigned == 1 ? "symbol" : "symbols";