X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/1d0c38b8a4f5abc4f06ad5f8b429035d2e465883..7f6dfe23db62e882dee94d2bf154fcd3686ca09f:/ev_kqueue.c?ds=sidebyside diff --git a/ev_kqueue.c b/ev_kqueue.c index eeaea3e..2c33e54 100644 --- a/ev_kqueue.c +++ b/ev_kqueue.c @@ -39,7 +39,8 @@ kqueue_change (EV_P_ int fd, int filter, int flags, int fflags) { struct kevent *ke; - array_needsize (struct kevent, kqueue_changes, kqueue_changemax, ++kqueue_changecnt, ); + ++kqueue_changecnt; + array_needsize (struct kevent, kqueue_changes, kqueue_changemax, kqueue_changecnt, EMPTY2); ke = &kqueue_changes [kqueue_changecnt - 1]; memset (ke, 0, sizeof (struct kevent));