From 85c8b87b826b728a6c162edf4ec3b955c0979b4e Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Tue, 19 Jan 2021 14:04:37 +0100 Subject: Util/Pod.pm: Fix uninitialized $podinfo{lastsecttext} on empty input Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/13898) --- util/perl/OpenSSL/Util/Pod.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'util/perl') diff --git a/util/perl/OpenSSL/Util/Pod.pm b/util/perl/OpenSSL/Util/Pod.pm index 02d37d2f85..b71f3901e0 100644 --- a/util/perl/OpenSSL/Util/Pod.pm +++ b/util/perl/OpenSSL/Util/Pod.pm @@ -116,6 +116,7 @@ sub extract_pod_info { my @invisible_names = (); my %podinfo = ( section => $defaults{section}); + $podinfo{lastsecttext} = ""; # init needed in case input file is empty # Regexp to split a text into paragraphs found at # https://www.perlmonks.org/?node_id=584367 -- cgit v1.2.3