Author: jamessan
Date: 2009-09-01 02:08:27 +0000 (Tue, 01 Sep 2009)
New Revision: 1983
Modified:
trunk/scripts/bts.pl
Log:
Require a value for each key given to limit.
Modified: trunk/scripts/bts.pl
===================================================================
--- trunk/scripts/bts.pl 2009-09-01 02:08:21 UTC (rev 1982)
+++ trunk/scripts/bts.pl 2009-09-01 02:08:27 UTC (rev 1983)
@@ -1858,6 +1858,9 @@
for my $arg (@args) {
my ($key,$value) = split /:/, $arg, 2;
next unless $key;
+ if (!defined $value) {
+ die "bts limit: No value given for '$key'\n";
+ }
if (exists $valid_keys{$key}) {
# Support "$key:" by making it look like "$key", i.e. no $value
# defined
--
To unsubscribe, send mail to [email protected].