Util/Pod.pm: Fix uninitialized $podinfo{lastsecttext} on empty input

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13898)
This commit is contained in:
Dr. David von Oheimb 2021-01-19 14:04:37 +01:00 committed by Dr. David von Oheimb
parent 8a9394c1ed
commit 85c8b87b82
1 changed files with 1 additions and 0 deletions

View File

@ -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