From a8ffd1c6895cbad8e9c0403acba61680ee20ddf9 Mon Sep 17 00:00:00 2001 From: Davide Paro Date: Tue, 4 Jan 2022 18:22:47 +0100 Subject: [PATCH] Forgot this line in previous commit --- src/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/log.c b/src/log.c index 9128554..ab09208 100644 --- a/src/log.c +++ b/src/log.c @@ -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); - localtime_r(&t, &ev->time_buf); + ev->time = localtime_r(&t, &ev->time_buf); } ev->udata = udata; }