diff options
-rw-r--r-- | common.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1285,7 +1285,7 @@ poller_set (struct poller *self, int fd, short events, new_entry->fd = fd; new_entry->events = events; - self->fds_info[self->len] = (struct poller_info) { dispatcher, data }; + self->fds_info[index] = (struct poller_info) { dispatcher, data }; } static void |