--- a/libpurple/plugins/log_reader.c Tue Jun 01 20:13:53 2021 -0500
+++ b/libpurple/plugins/log_reader.c Tue Jun 01 20:14:36 2021 -0500
@@ -769,6 +769,7 @@
while ((name = g_dir_read_name(dir))) {
+ gchar *file_path = NULL; if (!purple_str_has_prefix(c, username))
@@ -782,16 +783,22 @@
- path = g_build_filename(path, name, NULL);
+ file_path = g_build_filename(path, name, NULL); if (purple_strequal(c, ".xml") &&
- g_file_test(path, G_FILE_TEST_EXISTS)) {
+ g_file_test(file_path, G_FILE_TEST_EXISTS)) logfile = g_strdup(name);