From ae0a9d50bebb061e3b6ec4cc08677b6e6ed69ac9 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 30 Oct 2008 14:50:33 -0400 Subject: [PATCH] set ctime in --render mode if not known Avoids some uninitialised value warnings. --- IkiWiki/Render.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index 7f9c4cb9c..389063d46 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -528,6 +528,7 @@ sub commandline_render () { #{{{ $content=linkify($page, $page, $content); $content=htmlize($page, $page, $type, $content); $pagemtime{$page}=(stat($srcfile))[9]; + $pagectime{$page}=$pagemtime{$page} if ! exists $pagectime{$page}; print genpage($page, $content); exit 0; -- 2.26.2