aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shell/ChangeLog5
-rw-r--r--shell/e-shell.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 5d897bd62b..c479f46f5b 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,8 @@
+2000-05-09 Ettore Perazzoli <ettore@helixcode.com>
+
+ * e-shell.c (setup_storages): Woops. Don't free the path before
+ the warning message, as we need to print it.
+
2000-05-08 Ettore Perazzoli <ettore@helixcode.com>
* main.c (destroy_cb): New function.
diff --git a/shell/e-shell.c b/shell/e-shell.c
index f69606ab18..1223fc3e33 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -77,13 +77,15 @@ setup_storages (EShell *shell)
local_storage_path = g_concat_dir_and_file (priv->local_directory,
LOCAL_STORAGE_DIRECTORY);
local_storage = e_local_storage_open (local_storage_path);
- g_free (local_storage_path);
if (local_storage == NULL) {
g_warning (_("Cannot set up local storage -- %s"), local_storage_path);
+ g_free (local_storage_path);
return FALSE;
}
+ g_free (local_storage_path);
+
priv->storage_set = e_storage_set_new ();
e_storage_set_add_storage (priv->storage_set, local_storage);