mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +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:
parent
d4f87250a3
commit
2cc2c12e30
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user