From: Joey Hess Date: Wed, 21 Apr 2010 23:45:56 +0000 (-0400) Subject: add missing undef guard in derel X-Git-Tag: 3.20100427~78 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=673d6c958050b7ce07d5d8512d5370f9531225cd;p=ikiwiki.git add missing undef guard in derel --- diff --git a/IkiWiki.pm b/IkiWiki.pm index 4084d4997..8af290745 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -2245,7 +2245,7 @@ sub derel ($$) { if ($path =~ m!^\./!) { $from=~s#/?[^/]+$## if defined $from; $path=~s#^\./##; - $path="$from/$path" if length $from; + $path="$from/$path" if defined $from && length $from; } return $path;