aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorSivaiah Nallagatla <snallagatla@novell.com>2004-01-09 16:22:16 +0800
committerSivaiah Nallagatla <siva@src.gnome.org>2004-01-09 16:22:16 +0800
commitaf3f81fbeaebd6d45fb4142611c1338c576da29f (patch)
treef2a5ac4e3280d914140640ff46439f94a1caeba7 /camel
parent8f04fc1559807f287f20f6a10604dc16addfca5f (diff)
downloadgsoc2013-evolution-af3f81fbeaebd6d45fb4142611c1338c576da29f.tar.gz
gsoc2013-evolution-af3f81fbeaebd6d45fb4142611c1338c576da29f.tar.zst
gsoc2013-evolution-af3f81fbeaebd6d45fb4142611c1338c576da29f.zip
added null check for source url to take care of accounts with Server Types
2004-01-09 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/groupwise-config-listener.c (is_groupwise_account): added null check for source url to take care of accounts with Server Types as "None" svn path=/trunk/; revision=24129
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/providers/groupwise/groupwise-config-listener.c7
2 files changed, 11 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index e06f499175..f8ac647da7 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,8 @@
+2004-01-09 Sivaiah Nallagatla <snallagatla@novell.com>
+
+ * providers/groupwise/groupwise-config-listener.c (is_groupwise_account): added null check
+ for source url to take care of accounts with Server Types as "None"
+
2004-01-09 Not Zed <NotZed@Ximian.com>
* providers/imap/camel-imap-store.c (imap_forget_folder): fix
diff --git a/camel/providers/groupwise/groupwise-config-listener.c b/camel/providers/groupwise/groupwise-config-listener.c
index bd6b256035..3b368ac079 100644
--- a/camel/providers/groupwise/groupwise-config-listener.c
+++ b/camel/providers/groupwise/groupwise-config-listener.c
@@ -125,7 +125,12 @@ finalize (GObject *object)
static gboolean
is_groupwise_account (EAccount *account)
{
- return (strncmp (account->source->url, GROUPWISE_URI_PREFIX, GROUPWISE_PREFIX_LENGTH ) == 0);
+ if (account->source->url != NULL) {
+
+ return (strncmp (account->source->url, GROUPWISE_URI_PREFIX, GROUPWISE_PREFIX_LENGTH ) == 0);
+ } else {
+ return FALSE;
+ }
}