aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/poll.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/poll.c b/src/poll.c
index aa2a0821..e211b338 100644
--- a/src/poll.c
+++ b/src/poll.c
@@ -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 */