wikiheaders.pl: Fixed uninitialized value warning when run without arguments.

main
Ryan C. Gordon 2023-03-21 21:56:34 -07:00
parent 0ef85873a2
commit 1b81ececd3
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 4 additions and 4 deletions

View File

@ -59,10 +59,6 @@ if ((not defined $optionsfname) && (-f $default_optionsfname)) {
$optionsfname = $default_optionsfname; $optionsfname = $default_optionsfname;
} }
if (not defined $manpath) {
$manpath = "$srcpath/man";
}
if (defined $optionsfname) { if (defined $optionsfname) {
open OPTIONS, '<', $optionsfname or die("Failed to open options file '$optionsfname': $!\n"); open OPTIONS, '<', $optionsfname or die("Failed to open options file '$optionsfname': $!\n");
while (<OPTIONS>) { while (<OPTIONS>) {
@ -490,6 +486,10 @@ usage() if not defined $srcpath;
usage() if not defined $wikipath; usage() if not defined $wikipath;
#usage() if $copy_direction == 0; #usage() if $copy_direction == 0;
if (not defined $manpath) {
$manpath = "$srcpath/man";
}
my @standard_wiki_sections = ( my @standard_wiki_sections = (
'Draft', 'Draft',
'[Brief]', '[Brief]',