From: Rich Salz Date: Tue, 25 May 2021 17:42:45 +0000 (-0400) Subject: Make undef'd counts zero by default. X-Git-Tag: openssl-3.0.0-beta1~316 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=83058e810b3abf6b04c20857323b9e487cbd0367;p=thirdparty%2Fopenssl.git Make undef'd counts zero by default. Fixes #15409 Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/15467) --- diff --git a/util/mknum.pl b/util/mknum.pl index f661a9122d1..92435a87122 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";