From 8a1a8bade0e3b55ef36bda8206eec31a24f40f7b Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 4 Aug 2000 00:15:32 +0000 Subject: Make sure default_uri isn't NULL!! 2000-08-03 Jeffrey Stedfast * e-shell-folder-selection-dialog.c (set_default_folder): Make sure default_uri isn't NULL!! svn path=/trunk/; revision=4520 --- shell/ChangeLog | 5 +++++ shell/e-shell-folder-selection-dialog.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'shell') diff --git a/shell/ChangeLog b/shell/ChangeLog index 4cb12baad9..c25cc27616 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,8 @@ +2000-08-03 Jeffrey Stedfast + + * e-shell-folder-selection-dialog.c (set_default_folder): Make + sure default_uri isn't NULL!! + 2000-08-03 Ettore Perazzoli * e-shell-view-menu.c (command_goto_folder): Just use the current diff --git a/shell/e-shell-folder-selection-dialog.c b/shell/e-shell-folder-selection-dialog.c index 60aa36d9bd..3bf60d28e4 100644 --- a/shell/e-shell-folder-selection-dialog.c +++ b/shell/e-shell-folder-selection-dialog.c @@ -219,7 +219,7 @@ set_default_folder (EShellFolderSelectionDialog *shell_folder_selection_dialog, priv = shell_folder_selection_dialog->priv; - if (strncmp (default_uri, E_SHELL_URI_PREFIX, E_SHELL_URI_PREFIX_LEN) == 0) { + if (default_uri && strncmp (default_uri, E_SHELL_URI_PREFIX, E_SHELL_URI_PREFIX_LEN) == 0) { /* `evolution:' URI. */ default_path = g_strdup (default_uri + E_SHELL_URI_PREFIX_LEN); } else { -- cgit