From 9285e65be0bd6a7a1ccb4518d4e13c634fc23fd6 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Sun, 28 Jul 2019 10:42:28 +0000 Subject: [PATCH] 93_Log2Syslog: fix warning uninitialized value in numeric (>=) git-svn-id: https://svn.fhem.de/fhem/trunk@19905 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/93_Log2Syslog.pm | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index edca9b229..78b33242b 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 93_Log2Syslog: fix warning uninitialized value in numeric (>=) - feature: 93_Log2Syslog: V5.8.1, new attributes and further developments regarding to Forum: topic,75426.msg958836.html#msg958836, use "get versionNotes" for further informations diff --git a/fhem/FHEM/93_Log2Syslog.pm b/fhem/FHEM/93_Log2Syslog.pm index 5e365c89e..cc3df7f81 100644 --- a/fhem/FHEM/93_Log2Syslog.pm +++ b/fhem/FHEM/93_Log2Syslog.pm @@ -41,6 +41,7 @@ eval "use FHEM::Meta;1" or my $modMetaAbsent = 1; # Versions History intern: our %Log2Syslog_vNotesIntern = ( + "5.8.2" => "28.07.2019 fix warning uninitialized value in numeric ge (>=) at line 662 ", "5.8.1" => "23.07.2019 attribute waitForEOF rename to useEOF, useEOF also for type sender ", "5.8.0" => "20.07.2019 attribute waitForEOF, solution for Forum: https://forum.fhem.de/index.php/topic,75426.msg958836.html#msg958836 ", "5.7.0" => "20.07.2019 change logging and chomp received data, use raw parse format if automatic mode don't detect a valid format, ". @@ -659,7 +660,7 @@ sub Log2Syslog_getifdata($$@) { } } - $buforun = (length($hash->{BUF}) >= $mlen)?1:0; + $buforun = (length($hash->{BUF}) >= $mlen)?1:0 if($hash->{BUF}); if(!$uef || $hash->{SSL} || $buforun) { $data = $hash->{BUF};