fix uninitialized value $iodev in hash element line 221

This commit is contained in:
2021-11-27 09:52:55 +01:00
parent 5b268a4d9c
commit c21bd2479a
2 changed files with 7 additions and 5 deletions

View File

@ -218,7 +218,9 @@ sub Define {
$iodev = $hash->{IODev}->{NAME};
$hash->{BRIDGEAPI} = $::defs{$iodev}->{BRIDGEAPI};
$hash->{BRIDGEAPI} = $::defs{$iodev}->{BRIDGEAPI}
if ( defined(iodev)
&& $iodev );
my $d = $::modules{NUKIDevice}{defptr}{$nukiId};