From 9fca7f2f8b64f4caded4a0099cef1f4d152dabee Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 2 May 2008 13:01:51 -0400 Subject: [PATCH] avoid uninitialised value --- IkiWiki/Plugin/anonok.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IkiWiki/Plugin/anonok.pm b/IkiWiki/Plugin/anonok.pm index ba02325ff..1880516d5 100644 --- a/IkiWiki/Plugin/anonok.pm +++ b/IkiWiki/Plugin/anonok.pm @@ -16,7 +16,7 @@ sub canedit ($$$) { #{{{ my $ret; - if (length $config{anonok_pagespec}) { + if (exists $config{anonok_pagespec} && length $config{anonok_pagespec}) { if (pagespec_match($page, $config{anonok_pagespec}, location => $page)) { return ""; -- 2.26.2