aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-storage.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-storage.c')
-rw-r--r--shell/e-storage.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/shell/e-storage.c b/shell/e-storage.c
index e38c5e3fbf..7045ef47d5 100644
--- a/shell/e-storage.c
+++ b/shell/e-storage.c
@@ -112,13 +112,11 @@ folder_changed_cb (EFolder *folder,
GINT_TO_POINTER (highlight));
p = strrchr (path, '/');
if (p && p != path) {
- char *name;
-
- name = g_strndup (path, p - path);
- folder = e_folder_tree_get_folder (priv->folder_tree, name);
- g_free (name);
+ path = g_strndup (path, p - path);
+ folder = e_folder_tree_get_folder (priv->folder_tree, path);
if (folder)
e_folder_set_child_highlight (folder, highlight);
+ g_free (path);
}
}
}