diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-07 13:44:27 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-07 13:44:27 +0000 |
commit | 76734388a22c1ffed89e18d916a4215034898b39 (patch) | |
tree | 39be13695c82535d55bd0415d4a8c48643784113 /thread.c | |
parent | 9468e945c8877af9d33044e5813627282a7700f4 (diff) | |
download | ruby-76734388a22c1ffed89e18d916a4215034898b39.tar.gz |
* thread.c (rb_fd_zero): remove redundant zero fill.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 |