]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Patch from Sam Ziegler <ziegler@mediaguaranty.com> -- Don't choke if argv is empty.
authorterry%netscape.com <>
Sat, 19 Sep 1998 09:35:09 +0000 (09:35 +0000)
committerterry%netscape.com <>
Sat, 19 Sep 1998 09:35:09 +0000 (09:35 +0000)
processmail

index 7cf4caac118c94434c6a768ccf88f4e7526c6a6a..ee6b92ad1430d76eedd69c68e434985c9e3a5e94 100755 (executable)
@@ -206,7 +206,7 @@ if (open(FID, "<data/nomail")) {
 
 my $regenerate = 0;
 
-if ($ARGV[0] eq "regenerate") {
+if (($#ARGV >= 1) && ($ARGV[0] eq "regenerate")) {
     $regenerate = 1;
     $#ARGV = -1;
     SendSQL("select bug_id from bugs order by bug_id");