diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-08-02 01:22:18 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-08-02 01:22:18 +0800 |
commit | 6b4e29c7e6e71fbf146ddcdbbd58ac13617285d2 (patch) | |
tree | bab25f8e75498ee2e6f5baa28c10b2e0b133847b | |
parent | 496986326df84d02d17cbd7329a885e49237fcfc (diff) | |
download | gsoc2013-evolution-6b4e29c7e6e71fbf146ddcdbbd58ac13617285d2.tar.gz gsoc2013-evolution-6b4e29c7e6e71fbf146ddcdbbd58ac13617285d2.tar.zst gsoc2013-evolution-6b4e29c7e6e71fbf146ddcdbbd58ac13617285d2.zip |
Do a NULL-check on current_uri - socket is being closed? (as per the
2001-08-01 Jeffrey Stedfast <fejj@ximian.com>
* e-shell-view-menu.c (command_new_folder): Do a NULL-check on
current_uri - socket is being closed? (as per the comments for the
NULL-check in e-shell-view.c:socket_destroy_cb).
svn path=/trunk/; revision=11557
-rw-r--r-- | shell/ChangeLog | 6 | ||||
-rw-r--r-- | shell/e-shell-view-menu.c | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index 9b58a3fb7b..90b86cf29c 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,9 @@ +2001-08-01 Jeffrey Stedfast <fejj@ximian.com> + + * e-shell-view-menu.c (command_new_folder): Do a NULL-check on + current_uri - socket is being closed? (as per the comments for the + NULL-check in e-shell-view.c:socket_destroy_cb). + 2001-07-31 Ettore Perazzoli <ettore@ximian.com> * evolution-activity-client.c: Removed debugging messages. diff --git a/shell/e-shell-view-menu.c b/shell/e-shell-view-menu.c index 21b8680c49..9e19ac310f 100644 --- a/shell/e-shell-view-menu.c +++ b/shell/e-shell-view-menu.c @@ -301,16 +301,16 @@ command_new_folder (BonoboUIComponent *uih, EShell *shell; const char *current_uri; const char *default_parent_folder; - + shell_view = E_SHELL_VIEW (data); shell = e_shell_view_get_shell (shell_view); current_uri = e_shell_view_get_current_uri (shell_view); - - if (strncmp (current_uri, E_SHELL_URI_PREFIX, E_SHELL_URI_PREFIX_LEN) == 0) + + if (current_uri && strncmp (current_uri, E_SHELL_URI_PREFIX, E_SHELL_URI_PREFIX_LEN) == 0) default_parent_folder = current_uri + E_SHELL_URI_PREFIX_LEN; else default_parent_folder = NULL; - + e_shell_show_folder_creation_dialog (shell, GTK_WINDOW (shell_view), default_parent_folder, NULL /* result_callback */, |