From 25dbebab174976b71e89212579f0cb04c5184034 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Mon, 20 Apr 2020 15:48:01 +0200 Subject: [PATCH] log: don't log dt Use another name. --- src/log.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/log.c b/src/log.c index a76e6abd..9e097698 100644 --- a/src/log.c +++ b/src/log.c @@ -595,9 +595,9 @@ _groupchat_log_chat(const gchar *const login, const gchar *const room, const gch g_hash_table_replace(logs, strdup(room), dated_log); } - GDateTime *dt = g_date_time_new_now_local(); + GDateTime *dt_tmp = g_date_time_new_now_local(); - gchar *date_fmt = g_date_time_format(dt, "%H:%M:%S"); + gchar *date_fmt = g_date_time_format(dt_tmp, "%H:%M:%S"); FILE *grpchatlogp = fopen(dated_log->filename, "a"); g_chmod(dated_log->filename, S_IRUSR | S_IWUSR); @@ -616,7 +616,7 @@ _groupchat_log_chat(const gchar *const login, const gchar *const room, const gch } g_free(date_fmt); - g_date_time_unref(dt); + g_date_time_unref(dt_tmp); } void