diff options
-rw-r--r-- | io.c | 2 | ||||
-rw-r--r-- | thread.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -4671,8 +4671,8 @@ io_close_fptr(VALUE io) VALUE write_io; rb_io_t *write_fptr; struct list_head busy; - busy.n.next = busy.n.prev = &busy.n; + list_head_init(&busy); write_io = GetWriteIO(io); if (io != write_io) { write_fptr = RFILE(write_io)->fptr; @@ -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)); } |