summaryrefslogtreecommitdiffstats
path: root/util/perl
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2021-01-19 14:04:37 +0100
committerDr. David von Oheimb <dev@ddvo.net>2021-01-23 15:25:04 +0100
commit85c8b87b826b728a6c162edf4ec3b955c0979b4e (patch)
tree3bd6cbedfa28309faf1aab1e37b1b209ec1ad727 /util/perl
parent8a9394c1eddbac210d4a2dceab521efa7518fa1f (diff)
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)
Diffstat (limited to 'util/perl')
-rw-r--r--util/perl/OpenSSL/Util/Pod.pm1
1 files changed, 1 insertions, 0 deletions
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