From 042d2c68515a02dc89975a7efa8343b04e9ef974 Mon Sep 17 00:00:00 2001 From: Praveen Kumar Date: Mon, 29 Aug 2005 12:25:13 +0000 Subject: ** Fixes bug 314762 2005-08-29 Praveen Kumar ** Fixes bug 314762 * exchange-config-listener.c (remove_selected_non_offline_esources) : Fixing a nasty infinite loop by swapping an if and while block. svn path=/trunk/; revision=30284 --- plugins/exchange-operations/exchange-config-listener.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/exchange-operations/exchange-config-listener.c') diff --git a/plugins/exchange-operations/exchange-config-listener.c b/plugins/exchange-operations/exchange-config-listener.c index 2165bd7899..b711c63e0d 100644 --- a/plugins/exchange-operations/exchange-config-listener.c +++ b/plugins/exchange-operations/exchange-config-listener.c @@ -1162,12 +1162,12 @@ remove_selected_non_offline_esources (ExchangeAccount *account, const char *gcon if (ids) { offline_mode = (gchar*) e_source_get_property (source, "offline_sync"); - while ((node_to_be_deleted = - g_slist_find_custom (ids, - source_uid, - (GCompareFunc) strcmp))) { - if (!offline_mode || - (offline_mode && strcmp (offline_mode, "1"))) { + if (!offline_mode || + (offline_mode && strcmp (offline_mode, "1"))) { + while ((node_to_be_deleted = + g_slist_find_custom (ids, + source_uid, + (GCompareFunc) strcmp))) { g_free (node_to_be_deleted->data); ids = g_slist_delete_link (ids, node_to_be_deleted); -- cgit v1.2.3