summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2021-05-25 13:42:45 -0400
committerPauli <pauli@openssl.org>2021-05-29 16:09:08 +1000
commit83058e810b3abf6b04c20857323b9e487cbd0367 (patch)
treec9aa66cc74f8756fb5870e993c562726d5818367 /util
parent30691da1ba465f3cff5d865187fbf5c5244448eb (diff)
Make undef'd counts zero by default.
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)
Diffstat (limited to 'util')
-rw-r--r--util/mknum.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/mknum.pl b/util/mknum.pl
index f661a9122d..92435a8712 100644
--- a/util/mknum.pl
+++ b/util/mknum.pl
@@ -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";