From b395ac5017a1701b4cd1de2372bc4fabcee54dc1 Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Sat, 1 Dec 2012 09:45:34 +0000 Subject: [PATCH] Checking for uninitialized var. git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@2240 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/00_CUL.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/00_CUL.pm b/fhem/FHEM/00_CUL.pm index 09e4645de..669aed50a 100755 --- a/fhem/FHEM/00_CUL.pm +++ b/fhem/FHEM/00_CUL.pm @@ -677,7 +677,10 @@ CUL_XmitLimitCheckHM($$) # was working with 700ms - added buffer to 900ms my ($hash,$fn) = @_; my $id = (length($fn)>19)?substr($fn,16,6):"";#get HMID destination - if ($id){ + if($id && + $hash->{helper} && + $hash->{helper}{nextSend} && + $hash->{helper}{nextSend}{$id}) { my $DevDelay = $hash->{helper}{nextSend}{$id} - gettimeofday(); if ($DevDelay > 0.01){# wait less then 10 ms will not work $DevDelay = ((int($DevDelay*100))%100)/100;# security: no more then 1 sec