chiark / gitweb /
do check end
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 28 Jun 2010 02:00:11 +0000 (03:00 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 28 Jun 2010 02:00:11 +0000 (03:00 +0100)
cgi

diff --git a/cgi b/cgi
index cc6c5b2d39da6d67b4f416b8cfc532d221c8e91d..2df45cce350126a9eb24bb906df3164fa0b01d17 100755 (executable)
--- a/cgi
+++ b/cgi
@@ -264,6 +264,7 @@ if (defined $elem) {
     $sloth =~ m/^(\d+)$/ or die;
     $sloth= $1+0;
     my $end= $g->{TimeRanges}[$sloth];
+    die unless defined $end;
 
     my $cacheid= "$section!$group!$elem!$sloth!$width!$height";
     my $cachepath= "cache/$cacheid.png";