bugfix: solved the uninitialized problem for get

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3274 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
hotmaz 2013-06-11 20:06:17 +00:00
parent bf1259260a
commit 2ca70121fd

View File

@ -701,6 +701,7 @@ sub encode_eibd($)
return;
}
@data = @{$mref->{'data'}};
@data = (0x0) if(!(defined @data) || !(defined $data[0])); #make sure data has at least one element
my $datalen = @data;
Log(5,"encode_eibd dst: $mref->{'dst'} apci: $APCI datalen: $datalen data: @data");
@msg = (