INN commit: trunk/scripts (innupgrade.in)
INN Commit
Russ_Allbery at isc.org
Sat Apr 11 22:32:03 UTC 2009
Date: Saturday, April 11, 2009 @ 15:32:03
Author: iulius
Revision: 8411
$#_ in Perl returns the last index of an array, and not
the number of its elements!
Modified:
trunk/scripts/innupgrade.in
---------------+
innupgrade.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Modified: innupgrade.in
===================================================================
--- innupgrade.in 2009-04-11 22:15:35 UTC (rev 8410)
+++ innupgrade.in 2009-04-11 22:32:03 UTC (rev 8411)
@@ -121,7 +121,7 @@
push (@extraoverview, $_);
}
close (OVERVIEWFMT);
- if ($#extraoverview > 0) {
+ if ($#extraoverview >= 0) {
push (@$output, "\n# Moved from overview.fmt by innupgrade.\n");
push (@$output, "extraoverviewadvertised: [ " .
join (" ", @extraoverview) . " ]\n");
More information about the inn-committers
mailing list