* poll.cc (poll): Zero out `open_fds' as well.

This commit is contained in:
Corinna Vinschen
2000-07-04 17:36:44 +00:00
parent 914e40dfe6
commit 0106a9b755
2 changed files with 5 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ poll (struct pollfd *fds, unsigned int nfds, int timeout)
fd_set open_fds, read_fds, write_fds, except_fds;
struct timeval tv = { timeout / 1000, (timeout % 1000) * 1000 };
FD_ZERO (&open_fds);
FD_ZERO (&read_fds);
FD_ZERO (&write_fds);
FD_ZERO (&except_fds);