aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/blogc/sysinfo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/blogc/sysinfo.c b/src/blogc/sysinfo.c
index 8d9a810..4ec1411 100644
--- a/src/blogc/sysinfo.c
+++ b/src/blogc/sysinfo.c
@@ -101,6 +101,8 @@ blogc_sysinfo_get_datetime(void)
return NULL;
struct tm *t = gmtime(&tmp);
+ if (t == NULL)
+ return NULL;
char buf[1024];
if (0 == strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", t))