From 042b35d7455a7c6e430a699932796801b490b5a7 Mon Sep 17 00:00:00 2001 From: Alexander Zhylin Date: Mon, 17 Aug 2026 19:42:03 +0300 Subject: [PATCH] fixes write_into_log_file function --- src/components/utils/utils.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/utils/utils.c b/src/components/utils/utils.c index 43b61de..77f9ec8 100644 --- a/src/components/utils/utils.c +++ b/src/components/utils/utils.c @@ -100,7 +100,10 @@ int print_log(FILE *output, enum pl_type type, const char *format_message, sprintf(uf_str, uff_str, tcolor, date_preffix, format_message); va_start(args, format_message); ret = vfprintf(output, uf_str, args); + va_end(args); + va_start(args, format_message); write_into_log_file(uf_str + strlen(tcolor), args); + va_end(args); free(uf_str); va_end(args); return ret;