mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-10 16:42:38 +00:00
wikiheaders.pl: Fixed uninitialized value warning when run without arguments.
This commit is contained in:
@@ -59,10 +59,6 @@ if ((not defined $optionsfname) && (-f $default_optionsfname)) {
|
||||
$optionsfname = $default_optionsfname;
|
||||
}
|
||||
|
||||
if (not defined $manpath) {
|
||||
$manpath = "$srcpath/man";
|
||||
}
|
||||
|
||||
if (defined $optionsfname) {
|
||||
open OPTIONS, '<', $optionsfname or die("Failed to open options file '$optionsfname': $!\n");
|
||||
while (<OPTIONS>) {
|
||||
@@ -490,6 +486,10 @@ usage() if not defined $srcpath;
|
||||
usage() if not defined $wikipath;
|
||||
#usage() if $copy_direction == 0;
|
||||
|
||||
if (not defined $manpath) {
|
||||
$manpath = "$srcpath/man";
|
||||
}
|
||||
|
||||
my @standard_wiki_sections = (
|
||||
'Draft',
|
||||
'[Brief]',
|
||||
|
||||
Reference in New Issue
Block a user