From 9a11375a43afc3c3c65ffbed3474d8a24c5cce8c Mon Sep 17 00:00:00 2001 From: Byte09 <> Date: Sun, 21 Jan 2018 08:52:49 +0000 Subject: [PATCH] 98_Siro.pm:Fix Use of uninitialized value git-svn-id: https://svn.fhem.de/fhem/trunk@15944 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_Siro.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/fhem/FHEM/98_Siro.pm b/fhem/FHEM/98_Siro.pm index 79dc663b1..7e798c562 100644 --- a/fhem/FHEM/98_Siro.pm +++ b/fhem/FHEM/98_Siro.pm @@ -743,6 +743,7 @@ sub Siro_Attr(@) } my $oldstate =$hash->{helper}{position}; +if(!defined $oldstate){$oldstate=0}; my $newState = $oldstate; my $updateState; Log3 $hash, 3, "Siro_Attr: state old -> $oldstate new -> $newState";