projects
/
radio.haze.st.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix uninitialized value error
[radio.haze.st.git]
/
index.cgi
diff --git
a/index.cgi
b/index.cgi
index
0179860
..
7cce5c6
100755
(executable)
--- a/
index.cgi
+++ b/
index.cgi
@@
-91,7
+91,8
@@
$increment = 0.5;
$showstart = 12;
$cgi = new CGI;
-if ( $cgi->param('showstart') =~ /^(\d+)$/ ) {
+if ( defined($cgi->param('showstart'))
+ && $cgi->param('showstart') =~ /^(\d+)$/ ) {
die unless $1 < 24;
$showstart = $1;
}