summaryrefslogtreecommitdiff
path: root/ev_kqueue.c
diff options
context:
space:
mode:
authorayin <ayin>2007-11-12 09:44:37 +0000
committerayin <ayin>2007-11-12 09:44:37 +0000
commit42d2222c89438fb21dc75622c71c99e2eb2f195f (patch)
tree8b4025af6d31bb383d6627652309183dae066d84 /ev_kqueue.c
parent24a8ca468df5a45c3588f933e41fb8174066d4c8 (diff)
Fix double increment bug.
Diffstat (limited to 'ev_kqueue.c')
-rw-r--r--ev_kqueue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ev_kqueue.c b/ev_kqueue.c
index eeaea3e..701f6d2 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, );
ke = &kqueue_changes [kqueue_changecnt - 1];
memset (ke, 0, sizeof (struct kevent));