summaryrefslogtreecommitdiffstats
path: root/mandoc.c
diff options
context:
space:
mode:
Diffstat (limited to 'mandoc.c')
-rw-r--r--mandoc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mandoc.c b/mandoc.c
index f74e32a7..3ae01d66 100644
--- a/mandoc.c
+++ b/mandoc.c
@@ -480,6 +480,8 @@ time2a(time_t t)
int isz;
tm = localtime(&t);
+ if (tm == NULL)
+ return(NULL);
/*
* Reserve space: