aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@src.gnome.org>2001-07-25 07:32:52 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-07-25 07:32:52 +0800
commit1cf393ef9a95f6f8b1f6f80042cf8e873a4fe454 (patch)
tree02f8e2d3ccd33294da055733cace6a07e0f0ef1a
parentc2ba0b6c6beafa090b0b3ca0f4598890097d4806 (diff)
downloadgsoc2013-evolution-1cf393ef9a95f6f8b1f6f80042cf8e873a4fe454.tar
gsoc2013-evolution-1cf393ef9a95f6f8b1f6f80042cf8e873a4fe454.tar.gz
gsoc2013-evolution-1cf393ef9a95f6f8b1f6f80042cf8e873a4fe454.tar.bz2
gsoc2013-evolution-1cf393ef9a95f6f8b1f6f80042cf8e873a4fe454.tar.lz
gsoc2013-evolution-1cf393ef9a95f6f8b1f6f80042cf8e873a4fe454.tar.xz
gsoc2013-evolution-1cf393ef9a95f6f8b1f6f80042cf8e873a4fe454.tar.zst
gsoc2013-evolution-1cf393ef9a95f6f8b1f6f80042cf8e873a4fe454.zip
oops, we had a possible NULL value passed to a strcmp
svn path=/trunk/; revision=11372
-rw-r--r--mail/component-factory.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/component-factory.c b/mail/component-factory.c
index 4fdb6ed69f..f64985e6b4 100644
--- a/mail/component-factory.c
+++ b/mail/component-factory.c
@@ -128,10 +128,12 @@ create_view (EvolutionShellComponent *shell_component,
corba_shell = bonobo_object_corba_objref (BONOBO_OBJECT (shell_client));
if (g_strcasecmp (folder_type, "mail") == 0) {
+ const char *noselect;
CamelURL *url;
url = camel_url_new (physical_uri, NULL);
- if (url && g_strcasecmp (camel_url_get_param (url, "noselect"), "yes"))
+ noselect = camel_url_get_param (url, "noselect");
+ if (url && noselect && !g_strcasecmp (noselect, "yes"))
control = create_noselect_control ();
else
control = folder_browser_factory_new_control (physical_uri,