aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/exchange-operations/exchange-operations.c
diff options
context:
space:
mode:
authorShakti Sen <shprasad@novell.com>2005-07-14 15:00:51 +0800
committerShakti Prasad Sen <shaktis@src.gnome.org>2005-07-14 15:00:51 +0800
commita714a01aeb70692229f0994d1530b6c9dadd1f29 (patch)
treec658ec060514a0bbc0b47f540290176ce499b3d3 /plugins/exchange-operations/exchange-operations.c
parentbfa2e64242c672435866d4226c944770f3d10446 (diff)
downloadgsoc2013-evolution-a714a01aeb70692229f0994d1530b6c9dadd1f29.tar
gsoc2013-evolution-a714a01aeb70692229f0994d1530b6c9dadd1f29.tar.gz
gsoc2013-evolution-a714a01aeb70692229f0994d1530b6c9dadd1f29.tar.bz2
gsoc2013-evolution-a714a01aeb70692229f0994d1530b6c9dadd1f29.tar.lz
gsoc2013-evolution-a714a01aeb70692229f0994d1530b6c9dadd1f29.tar.xz
gsoc2013-evolution-a714a01aeb70692229f0994d1530b6c9dadd1f29.tar.zst
gsoc2013-evolution-a714a01aeb70692229f0994d1530b6c9dadd1f29.zip
Checked for if the exchange account exist/configured. Replaced all the
2005-07-13 Shakti Sen <shprasad@novell.com> * exchange-operations.c: Checked for if the exchange account exist/configured. * exchange-folder-permission.c: Replaced all the occurences of function exchange_config_listener_get_accounts() with exchange_operations_get_exchange_account() and returns if it doesn't exist. Also took care to avoid some compile time warnings. * exchange-folder.c: Same. Also took care to avoid some compile time warnings. * exchange-folder-subscription.c: Included exchange-folder-subscription.h file to avoid compilation warning. Fixes bug #310233. svn path=/trunk/; revision=29768
Diffstat (limited to 'plugins/exchange-operations/exchange-operations.c')
-rw-r--r--plugins/exchange-operations/exchange-operations.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/exchange-operations/exchange-operations.c b/plugins/exchange-operations/exchange-operations.c
index bd7f959ef5..24756008c9 100644
--- a/plugins/exchange-operations/exchange-operations.c
+++ b/plugins/exchange-operations/exchange-operations.c
@@ -176,12 +176,13 @@ exchange_operations_cta_select_node_from_tree (GtkTreeStore *store, GtkTreeIter
ExchangeAccount *
exchange_operations_get_exchange_account (void)
{
- ExchangeAccount *account;
+ ExchangeAccount *account = NULL;
GSList *acclist;
acclist = exchange_config_listener_get_accounts (exchange_global_config_listener);
/* FIXME: Need to be changed for handling multiple accounts */
- account = acclist->data;
+ if (acclist)
+ account = acclist->data;
return account;
}