1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05: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);