1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-30 06:45:25 +00:00

Check return value of localtime

Fixes #10
This commit is contained in:
Nei 2017-06-29 13:48:44 +00:00
parent 2b209348bd
commit 29ebac987d

View File

@ -560,6 +560,9 @@ char *my_asctime(time_t t)
int len;
tm = localtime(&t);
if (tm == NULL)
return g_strdup("???");
str = g_strdup(asctime(tm));
len = strlen(str);