mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 01:46:08 +00:00
OWX_SER: fix 'uninitialized value in vec'
git-svn-id: https://svn.fhem.de/fhem/trunk@6275 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
89772000bc
commit
744331d94c
@ -66,7 +66,8 @@ sub poll($) {
|
||||
my ( $self ) = @_;
|
||||
my $hash = $self->{hash};
|
||||
if(defined($hash->{FD})) {
|
||||
my ($rin,$win);
|
||||
my $rin = '';
|
||||
my $win = '';
|
||||
vec($rin, $hash->{FD}, 1) = 1;
|
||||
vec($win, $hash->{FD}, 1) = 1;
|
||||
if (select($rin, $win, $rin | $win, 2)) { #TODO: implement attribute based timeout
|
||||
|
Loading…
x
Reference in New Issue
Block a user