This commit is contained in:
Rostislav Stříbrný 2022-11-04 12:12:43 +01:00
parent 03aa94502d
commit a52a2fe12a

View File

@ -120,7 +120,7 @@ int log_add_fp(FILE *fp, int level) {
static void init_event(log_Event *ev, void *udata) {
if (!ev->time) {
time_t t = time(NULL);
ev->time = localtime(&t, &ev->time_buf);
ev->time = localtime_r(&t, &ev->time_buf);
}
ev->udata = udata;
}