summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'time.c')
-rw-r--r--time.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/time.c b/time.c
index 74f1f28555..ef9f529d15 100644
--- a/time.c
+++ b/time.c
@@ -522,6 +522,7 @@ init_leap_second_info()
now = time(NULL);
gmtime(&now);
tm = gmtime_with_leapsecond(&now, &result);
+ if (!tm) return;
this_year = tm->tm_year;
max = ~(time_t)0;