diff options
author | terry%netscape.com <> | 1998-09-19 11:35:09 +0200 |
---|---|---|
committer | terry%netscape.com <> | 1998-09-19 11:35:09 +0200 |
commit | 7ddceed18f4fea83d64cc91c6ffbe4cda0a5948b (patch) | |
tree | dd65e26e169bb63580ddbc941a1086360efe478d | |
parent | 5c3e4f22a49834a84c371ae20f022890f2cbe8b3 (diff) | |
download | bugzilla-7ddceed18f4fea83d64cc91c6ffbe4cda0a5948b.tar.gz bugzilla-7ddceed18f4fea83d64cc91c6ffbe4cda0a5948b.tar.xz |
Patch from Sam Ziegler <ziegler@mediaguaranty.com> -- Don't choke if argv is empty.
-rwxr-xr-x | processmail | 2 |
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"); |