diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-07-25 01:07:53 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-07-25 01:07:53 +0200 |
commit | 7621ae954c8fcee1e1ad7a53735d20629f26bf83 (patch) | |
tree | 1e2697a2cfd29bba5a2fc7259bf5466e4c29f604 | |
parent | a2e522510b2b5122aa2ba3d120c0f28e2d24ed03 (diff) |
Bugfix: allow the absence of default section in the config file.
-rw-r--r-- | lib/Net/IMAP/Sync.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Net/IMAP/Sync.pm b/lib/Net/IMAP/Sync.pm index be083f3..c3af4fa 100644 --- a/lib/Net/IMAP/Sync.pm +++ b/lib/Net/IMAP/Sync.pm @@ -75,7 +75,7 @@ sub read_config($$%) { my %configs; foreach my $section (@$sections) { - my $conf = { %{$h->{_}} }; # default section + my $conf = defined $h->{_} ? { %{$h->{_}} } : {}; # default section $configs{$section} = $conf; next unless defined $section and $section ne '_'; |