aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-log-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy/empathy-log-manager.c')
-rw-r--r--libempathy/empathy-log-manager.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/libempathy/empathy-log-manager.c b/libempathy/empathy-log-manager.c
index e234ec521..e47f50fb8 100644
--- a/libempathy/empathy-log-manager.c
+++ b/libempathy/empathy-log-manager.c
@@ -634,24 +634,22 @@ log_manager_get_dir (EmpathyLogManager *manager,
{
const gchar *account_id;
gchar *basedir;
- gchar *str;
account_id = mc_account_get_unique_name (account);
- basedir =
- str = g_build_path (G_DIR_SEPARATOR_S,
- log_manager_get_basedir (manager),
- account_id,
- chat_id,
- NULL);
if (chatroom) {
basedir = g_build_path (G_DIR_SEPARATOR_S,
- str,
+ log_manager_get_basedir (manager),
+ account_id,
LOG_DIR_CHATROOMS,
+ chat_id,
NULL);
- g_free (str);
} else {
- basedir = str;
+ basedir = g_build_path (G_DIR_SEPARATOR_S,
+ log_manager_get_basedir (manager),
+ account_id,
+ chat_id,
+ NULL);
}
return basedir;