aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 7ca6625d7c..70338bff38 100644
--- a/thread.c
+++ b/thread.c
@@ -2289,8 +2289,8 @@ void
rb_thread_fd_close(int fd)
{
struct list_head busy;
- busy.n.next = busy.n.prev = &busy.n;
+ list_head_init(&busy);
if (rb_notify_fd_close(fd, &busy)) {
do rb_thread_schedule(); while (!list_empty(&busy));
}