2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

Avoid uninitialized message for internal hash entry with undefined value

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

View File

@ -1432,7 +1432,8 @@ PrintHash($$)
} }
} }
} else { } 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; return $str . $sstr;