X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/f776d56f36abeed4a6091c2ec9b96363213ce2b2..7adde6c7c7a709d21a4cacdf6a1b3bc9418245df:/ev_poll.c?ds=inline diff --git a/ev_poll.c b/ev_poll.c index b858b45..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];