From 9e5f174fb794fca58de9d45c929a06040791148c Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Sun, 12 Jul 2015 21:45:34 +0000 Subject: [PATCH] 33_readingsHistory.pm: fixed uninitialized value warning git-svn-id: https://svn.fhem.de/fhem/trunk@8951 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/33_readingsHistory.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fhem/FHEM/33_readingsHistory.pm b/fhem/FHEM/33_readingsHistory.pm index e06d76c9c..f22b1015a 100644 --- a/fhem/FHEM/33_readingsHistory.pm +++ b/fhem/FHEM/33_readingsHistory.pm @@ -227,6 +227,8 @@ readingsHistory_lookup2($$$$) $lookup = $vf; } + return $lookup if( !defined($lookup) ); + if( !ref($lookup) && $lookup =~ m/^{.*}$/) { my $DEVICE = $name; my $READING = $reading;