aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view-menu.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-08-02 01:22:18 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-08-02 01:22:18 +0800
commit6b4e29c7e6e71fbf146ddcdbbd58ac13617285d2 (patch)
treebab25f8e75498ee2e6f5baa28c10b2e0b133847b /shell/e-shell-view-menu.c
parent496986326df84d02d17cbd7329a885e49237fcfc (diff)
downloadgsoc2013-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
Diffstat (limited to 'shell/e-shell-view-menu.c')
-rw-r--r--shell/e-shell-view-menu.c8
1 files changed, 4 insertions, 4 deletions
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 */,
c1a0de221b51f4c31684157'>- Welcome X.org 7.2 \o/.flz2007-05-201-1/+1 * Now appears to build on amd64kris2007-04-021-4/+0 * Fix deinstall and unbroke port.anray2007-03-062-4/+3 * BROKEN: Incomplete pkg-plistkris2007-02-271-0/+2 * * Remove the direct inclusion of bsd.emacs.mkanray2007-02-074-443/+533 * Deprecate and expire on 2007-02-07 to give the maintainer more incentivekris2006-12-101-0/+2 * BROKEN: incomplete pkg-plistkris2006-12-011-0/+2 * Fix plist and unbroken port.anray2006-11-123-4/+3 * BROKEN: Incorrect pkg-plistkris2006-10-161-0/+2 * Remove zero-sized files.erwin2006-07-112-0/+0 * - Remove EMACS_SITE_LISTDIR if empty to satisfy pointyhatsem2006-05-161-0/+1 * Remove USE_REINPLACE from ports starting with Medwin2006-05-111-1/+0 * - Add USE_EMACS=yes. It should present in all emacsen ports.sem2006-05-061-0/+1 * - Update to 3.6sem2006-05-029-108/+126 * SHA256ifyedwin2006-01-221-0/+1 * Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtryedwin2006-01-221-1/+1 * BROKEN on amd64: Does not buildkris2005-10-281-0/+4 * Fix plist.barner2005-09-161-0/+3 * Fix build:barner2005-09-152-7/+35