mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-06-06 13:00:58 +03:00
poll: Zero (read|write|expect)fds in bsd_poll()
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
parent
4512a3fead
commit
ab269f036e
@ -170,8 +170,11 @@ static int bsd_poll(ssh_pollfd_t *fds, nfds_t nfds, int timeout)
|
||||
return -1;
|
||||
}
|
||||
|
||||
ZERO_STRUCT(readfds);
|
||||
FD_ZERO(&readfds);
|
||||
ZERO_STRUCT(writefds);
|
||||
FD_ZERO(&writefds);
|
||||
ZERO_STRUCT(exceptfds);
|
||||
FD_ZERO(&exceptfds);
|
||||
|
||||
/* compute fd_sets and find largest descriptor */
|
||||
|
Loading…
x
Reference in New Issue
Block a user