summaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'common.c')
-rw-r--r--common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.c b/common.c
index 9d26799..d10a115 100644
--- a/common.c
+++ b/common.c
@@ -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