diff options
Diffstat (limited to 'src/run.c')
-rw-r--r-- | src/run.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -230,7 +230,8 @@ void run(void) /* initialization: get the first alarm available */ gettimeofday(&tv, NULL); - get_next_alarm(&tv, next); + if (!get_next_alarm(&tv, next)) + next = NULL; while(1) { if (__run(next)) { |