From: Todd C. Miller Date: Fri, 2 Nov 2001 20:51:18 +0000 (+0000) Subject: fix warning when no args X-Git-Tag: SUDO_1_6_4~173 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27a4c619bc761d44f96e0b241e5b5be9c3c3878d;p=sudo fix warning when no args --- diff --git a/mkdefaults b/mkdefaults index 0da1f2e56..c092361b4 100755 --- a/mkdefaults +++ b/mkdefaults @@ -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';