common: avoid comparison of undefined modification date
[sheet.git] / common.inc.plp
index d6ef393c0313c437124e6c0d5f626394d9d76914..58d096481b05d882d14b7e3008335003b23e41d7 100644 (file)
@@ -54,7 +54,7 @@ sub stylesheet {
 }
 
 sub checkmodified {
-       my $lastmod;
+       my $lastmod = 0;
        for (@_) {
                my $mod = stat $_ or next;
                $mod = $mod->mtime or next;