Avoid uninitialized message for internal hash entry with undefined value

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

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;