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:
parent
d4f87250a3
commit
2cc2c12e30
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user