fix warning when no args
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
# description (or NULL)
|
# description (or NULL)
|
||||||
|
|
||||||
# Deal with optional -o (output) argument
|
# Deal with optional -o (output) argument
|
||||||
if ($ARGV[0] eq "-o") {
|
if ($#ARGV == 1 && $ARGV[0] eq "-o") {
|
||||||
shift;
|
shift;
|
||||||
$header = $cfile = shift;
|
$header = $cfile = shift;
|
||||||
$header .= '.h';
|
$header .= '.h';
|
||||||
|
Reference in New Issue
Block a user