2
0
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:
ntruchsess 2014-07-19 11:51:37 +00:00
parent 89772000bc
commit 744331d94c

View File

@ -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