aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.c
diff options
context:
space:
mode:
authorJason Leach <jleach@ximian.com>2001-07-10 05:54:53 +0800
committerJacob Leach <jleach@src.gnome.org>2001-07-10 05:54:53 +0800
commit39440346cf2d5055204625fe4f2950d66819a136 (patch)
tree2d4cb1a4e2477336ef02b4c50baf3850b5725155 /shell/e-shell-view.c
parent25efa799eebf0b057a91d05a36ffadb9eeb5b9db (diff)
downloadgsoc2013-evolution-39440346cf2d5055204625fe4f2950d66819a136.tar.gz
gsoc2013-evolution-39440346cf2d5055204625fe4f2950d66819a136.tar.zst
gsoc2013-evolution-39440346cf2d5055204625fe4f2950d66819a136.zip
It's very possible that get_storage_set_path_from_uri() returns NULL (5 of
2001-07-09 Jason Leach <jleach@ximian.com> * e-shell-view.c (updated_folder_cb): It's very possible that get_storage_set_path_from_uri() returns NULL (5 of the 6 return cases), so check that it's not NULL before trying to strcmp() it. Fixes a startup crash. svn path=/trunk/; revision=10935
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r--shell/e-shell-view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index c8385ebbc4..7718f471ab 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -1136,7 +1136,7 @@ updated_folder_cb (EStorageSet *storage_set,
#endif
view_path = get_storage_set_path_from_uri (priv->uri);
- if (strcmp (path, view_path) != 0)
+ if (view_path && strcmp (path, view_path) != 0)
return;
/* Update the folder title bar and the window title bar */