1
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-05-07 22:29:19 +00:00

Avoid uninitialized message for internal hash entry with undefined value

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@2449 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-01-07 19:52:24 +00:00
parent 48f3269b51
commit 66113c8638

View File

@ -1432,7 +1432,8 @@ PrintHash($$)
}
}
} else {
$str .= sprintf("%*s %-10s %s\n", $lev," ",$c, $h->{$c});
my $v = $h->{$c};
$str .= sprintf("%*s %-10s %s\n", $lev," ",$c, defined($v) ? $v : "");
}
}
return $str . $sstr;