Commit 3fefb104 authored by Dietmar Maurer's avatar Dietmar Maurer

fix bug 37: avoid warning about uninitialized value

parent 333eda8e
...@@ -841,7 +841,7 @@ sub create_config_line { ...@@ -841,7 +841,7 @@ sub create_config_line {
my $text; my $text;
if (defined($data->{value})) { if (defined($data->{value})) {
if ($confdesc->{$key}->{type} eq 'boolean') { if ($confdesc->{$key} && $confdesc->{$key}->{type} eq 'boolean') {
my $txt = $data->{value} ? 'yes' : 'no'; my $txt = $data->{value} ? 'yes' : 'no';
$text .= uc($key) . "=\"$txt\"\n"; $text .= uc($key) . "=\"$txt\"\n";
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment