From: Mischa POSLAWSKY Date: Wed, 29 Mar 2017 16:08:04 +0000 (+0200) Subject: common: avoid comparison of undefined modification date X-Git-Tag: v1.10~278 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/7713d82f979bdb6eb47c41b4e3b2ce198b6acd2a common: avoid comparison of undefined modification date Hidden warning. --- diff --git a/common.inc.plp b/common.inc.plp index d6ef393..58d0964 100644 --- a/common.inc.plp +++ b/common.inc.plp @@ -54,7 +54,7 @@ sub stylesheet { } sub checkmodified { - my $lastmod; + my $lastmod = 0; for (@_) { my $mod = stat $_ or next; $mod = $mod->mtime or next;