check for empty srcdir

This happens when using -dumpsetup
master
Joey Hess 2009-02-14 03:04:11 -05:00
parent 684cd73a79
commit adcc349d89
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ sub getsetup () {
}
sub checkconfig () {
if (defined $config{srcdir}) {
if (defined $config{srcdir} && length $config{srcdir}) {
# Preprocess the shortcuts page to get all the available shortcuts
# defined before other pages are rendered.
my $srcfile=srcfile("shortcuts.".$config{default_pageext}, 1);