diff options
Diffstat (limited to 'lib/Config/Parser.pm')
-rw-r--r-- | lib/Config/Parser.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Config/Parser.pm b/lib/Config/Parser.pm index c0a2179..93b23fc 100644 --- a/lib/Config/Parser.pm +++ b/lib/Config/Parser.pm @@ -101,13 +101,13 @@ sub loadsynt { } while (($val = shift @words) && $val =~ /^:(?<kw>.+?)(?:\s*=\s*(?<val>.*))?$/) { $ret->{$+{kw}} = $+{val} // 1; } - $ret->{default} = $val if $val; + $ret->{default} = $val if defined($val); ($name, $ret); } })->{section}; } } |