summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/timer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/timer.c b/src/timer.c
index 47d1786b..a8cd42b8 100644
--- a/src/timer.c
+++ b/src/timer.c
@@ -190,8 +190,7 @@ static void update_nearest(struct timeval *cand, struct timeval *current)
timersub(cand, current, &nearest);
else {
/* loop again inmediately */
- nearest.tv_sec = 0;
- nearest.tv_usec = 0;
+ timerclear(&nearest);
}
nearest_p = &nearest;
} else {