fix bug 37: avoid warning about uninitialized value

This commit is contained in:
Dietmar Maurer 2011-11-17 10:59:06 +01:00
parent 165a9668c1
commit e10faadcf7

View File

@ -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 {