fix
This commit is contained in:
parent
03aa94502d
commit
a52a2fe12a
@ -120,7 +120,7 @@ int log_add_fp(FILE *fp, int level) {
|
|||||||
static void init_event(log_Event *ev, void *udata) {
|
static void init_event(log_Event *ev, void *udata) {
|
||||||
if (!ev->time) {
|
if (!ev->time) {
|
||||||
time_t t = time(NULL);
|
time_t t = time(NULL);
|
||||||
ev->time = localtime(&t, &ev->time_buf);
|
ev->time = localtime_r(&t, &ev->time_buf);
|
||||||
}
|
}
|
||||||
ev->udata = udata;
|
ev->udata = udata;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user