about summary refs log tree commit homepage
path: root/lib/PublicInbox/Config.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-10-15 01:38:25 +0000
committerEric Wong <e@80x24.org>2019-10-15 20:26:41 +0000
commit849f57851a04e376cf2327d9e98e8128bf3c756e (patch)
tree94935fbd7e01ffbcb8b7ee43464cd3baf468c1c8 /lib/PublicInbox/Config.pm
parentfe3d294c237640bebf5d047c92921287a20d4485 (diff)
downloadpublic-inbox-849f57851a04e376cf2327d9e98e8128bf3c756e.tar.gz
It's probably wrong to use relative path names, but things are
all relative these days anyways with shared and networked FSes.
Diffstat (limited to 'lib/PublicInbox/Config.pm')
-rw-r--r--lib/PublicInbox/Config.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm
index e0329ebf..509de0a0 100644
--- a/lib/PublicInbox/Config.pm
+++ b/lib/PublicInbox/Config.pm
@@ -93,7 +93,7 @@ sub each_inbox {
         # may auto-vivify if config file is non-existent:
         foreach my $section (@{$self->{-section_order}}) {
                 next if $section !~ m!\Apublicinbox\.([^/]+)\z!;
-                $self->{"publicinbox.$1.mainrepo"} or next;
+                defined($self->{"publicinbox.$1.mainrepo"}) or next;
                 my $ibx = lookup_name($self, $1) or next;
                 $cb->($ibx);
         }