fix warning when no args

This commit is contained in:
Todd C. Miller
2001-11-02 20:51:18 +00:00
parent 717eb3fdf2
commit 27a4c619bc

View File

@@ -9,7 +9,7 @@
# description (or NULL)
# Deal with optional -o (output) argument
if ($ARGV[0] eq "-o") {
if ($#ARGV == 1 && $ARGV[0] eq "-o") {
shift;
$header = $cfile = shift;
$header .= '.h';