summaryrefslogtreecommitdiffstats
path: root/processmail
diff options
context:
space:
mode:
authorterry%netscape.com <>1998-09-19 11:35:09 +0200
committerterry%netscape.com <>1998-09-19 11:35:09 +0200
commit7ddceed18f4fea83d64cc91c6ffbe4cda0a5948b (patch)
treedd65e26e169bb63580ddbc941a1086360efe478d /processmail
parent5c3e4f22a49834a84c371ae20f022890f2cbe8b3 (diff)
downloadbugzilla-7ddceed18f4fea83d64cc91c6ffbe4cda0a5948b.tar.gz
bugzilla-7ddceed18f4fea83d64cc91c6ffbe4cda0a5948b.tar.xz
Patch from Sam Ziegler <ziegler@mediaguaranty.com> -- Don't choke if argv is empty.
Diffstat (limited to 'processmail')
-rwxr-xr-xprocessmail2
1 files changed, 1 insertions, 1 deletions
diff --git a/processmail b/processmail
index 7cf4caac1..ee6b92ad1 100755
--- a/processmail
+++ b/processmail
@@ -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");