From 9da5b632dc8592ca953b86bd415002ab05f9f1b8 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Sat, 9 Sep 2000 20:18:01 +0000 Subject: Fix a possible crash when viewing no folder. svn path=/trunk/; revision=5292 --- shell/ChangeLog | 5 +++++ shell/e-shell-view.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'shell') diff --git a/shell/ChangeLog b/shell/ChangeLog index b1f41c28b0..3c55f85063 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,8 @@ +2000-09-09 Ettore Perazzoli + + * e-shell-view.c (update_for_current_uri): Make sure `folder_name' + is always dynamically allocated, as we `g_free()' it. + 2000-09-08 Lauris Kaplinski * e-shell-view.c (update_for_current_uri): Translate UTF-8 string diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index 3480f01c4b..78c2a03f52 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -934,7 +934,7 @@ update_for_current_uri (EShellView *shell_view) path); if (folder == NULL) - folder_name = _("None"); + folder_name = g_strdup (_("None")); else folder_name = e_utf8_to_gtk_string ((GtkWidget *) shell_view, e_folder_get_name (folder)); -- cgit