summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'time.c')
-rw-r--r--time.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/time.c b/time.c
index 2623850efb..dae48091a6 100644
--- a/time.c
+++ b/time.c
@@ -1280,7 +1280,8 @@ init_leap_second_info()
else
known_leap_seconds_limit = now + (time_t)(366*86400);
- gmtime_with_leapsecond(&known_leap_seconds_limit, &result);
+ if (!gmtime_with_leapsecond(&known_leap_seconds_limit, &result))
+ return;
vtm.year = LONG2NUM(result.tm_year + 1900);
vtm.mon = result.tm_mon + 1;