X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/5e20ccfe261679c78f9aa365ac087fb0700e0f2b..edc31a9118d9252f091b336522858c4b3e36e2f8:/ev_poll.c?ds=inline diff --git a/ev_poll.c b/ev_poll.c index 7a17d4f..b58ce82 100644 --- a/ev_poll.c +++ b/ev_poll.c @@ -42,6 +42,10 @@ static void poll_modify (EV_P_ int fd, int oev, int nev) { int idx; + + if (oev == nev) + return; + array_needsize (pollidxs, pollidxmax, fd + 1, pollidx_init); idx = pollidxs [fd]; @@ -102,7 +106,7 @@ poll_init (EV_P_ int flags) method_poll = poll_poll; pollidxs = 0; pollidxmax = 0; - polls = 0; pollsmax = 0; pollscnt = 0; + polls = 0; pollmax = 0; pollcnt = 0; return EVMETHOD_POLL; }