From af3f81fbeaebd6d45fb4142611c1338c576da29f Mon Sep 17 00:00:00 2001 From: Sivaiah Nallagatla Date: Fri, 9 Jan 2004 08:22:16 +0000 Subject: added null check for source url to take care of accounts with Server Types 2004-01-09 Sivaiah Nallagatla * 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 --- camel/providers/groupwise/groupwise-config-listener.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'camel/providers') 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; + } } -- cgit v1.2.3