summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ev.c b/ev.c
index 6599ea5..e5b8c81 100644
--- a/ev.c
+++ b/ev.c
@@ -1525,7 +1525,7 @@ periodics_reschedule (EV_P)
int i;
/* adjust periodics after time jump */
- for (i = 0; i < periodiccnt; ++i)
+ for (i = 1; i <= periodiccnt; ++i)
{
ev_periodic *w = (ev_periodic *)periodics [i];