summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/thread.c b/thread.c
index 55236b7f8e..182feb31a1 100644
--- a/thread.c
+++ b/thread.c
@@ -2350,10 +2350,8 @@ rb_fd_term(rb_fdset_t *fds)
void
rb_fd_zero(rb_fdset_t *fds)
{
- if (fds->fdset) {
+ if (fds->fdset)
MEMZERO(fds->fdset, fd_mask, howmany(fds->maxfd, NFDBITS));
- FD_ZERO(fds->fdset);
- }
}
static void