diff --git a/reference.c b/reference.c index bf30991..9032323 100644 --- a/reference.c +++ b/reference.c @@ -1333,7 +1333,8 @@ REF_DisableLocal(void) static int is_leap_close(time_t t) { - return t >= leap_when - LEAP_SECOND_CLOSE && t < leap_when + LEAP_SECOND_CLOSE; + return leap_when != 0 && + t >= leap_when - LEAP_SECOND_CLOSE && t < leap_when + LEAP_SECOND_CLOSE; } /* ================================================== */