1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-16 21:35:24 +00:00

log: don't log dt

Use another name.
This commit is contained in:
Michael Vetter 2020-04-20 15:48:01 +02:00
parent 5a42883c27
commit 25dbebab17

View File

@ -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