From 9abda92324e2ae17a7437d7c0dded39cf4462649 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Thu, 15 Jan 2009 22:45:45 +0100 Subject: [PATCH] po(_istranslation): fix unitialized value Signed-off-by: intrigeri --- IkiWiki/Plugin/po.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index a050d2b71..3a696fb65 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -680,6 +680,7 @@ sub istranslatable ($) { sub _istranslation ($) { my $page=shift; + $page='' unless (defined $page && length $page); my $hasleadingslash = ($page=~s#^/##); my $file=$pagesources{$page}; return 0 unless (defined $file -- 2.26.2