diff --git a/unix/moduselect.c b/unix/moduselect.c index fbb78ab595..0815513df2 100644 --- a/unix/moduselect.c +++ b/unix/moduselect.c @@ -54,7 +54,7 @@ STATIC mp_obj_t poll_register(uint n_args, const mp_obj_t *args) { flags = POLLIN | POLLOUT; } - int i; + int i = 0; if (self->len < self->alloc) { i = self->len++; } else {