get_standard_option: do not overwrite defaults when they evaluate to false

This commit is contained in:
Dietmar Maurer 2015-08-04 08:58:09 +02:00
parent 24cea9a96e
commit c38ac70fe0

View File

@ -42,7 +42,7 @@ sub get_standard_option {
my $res = $base || {}; my $res = $base || {};
foreach my $opt (keys %$std) { foreach my $opt (keys %$std) {
next if $res->{$opt}; next if defined($res->{$opt});
$res->{$opt} = $std->{$opt}; $res->{$opt} = $std->{$opt};
} }