diff options
author | Praveen Kumar <kpraveen@novell.com> | 2005-08-29 20:25:13 +0800 |
---|---|---|
committer | Praveen Kumar <kpraveen@src.gnome.org> | 2005-08-29 20:25:13 +0800 |
commit | 042d2c68515a02dc89975a7efa8343b04e9ef974 (patch) | |
tree | 16a91485dd02e778c181fc6027c7dc772dda1bed | |
parent | 73c56f28ea90b4a0ea30986eef6a37d7dba496c0 (diff) | |
download | gsoc2013-evolution-042d2c68515a02dc89975a7efa8343b04e9ef974.tar.gz gsoc2013-evolution-042d2c68515a02dc89975a7efa8343b04e9ef974.tar.zst gsoc2013-evolution-042d2c68515a02dc89975a7efa8343b04e9ef974.zip |
** Fixes bug 314762
2005-08-29 Praveen Kumar <kpraveen@novell.com>
** 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
-rw-r--r-- | plugins/exchange-operations/ChangeLog | 7 | ||||
-rw-r--r-- | plugins/exchange-operations/exchange-config-listener.c | 12 |
2 files changed, 13 insertions, 6 deletions
diff --git a/plugins/exchange-operations/ChangeLog b/plugins/exchange-operations/ChangeLog index e55420b3b7..a4da29503c 100644 --- a/plugins/exchange-operations/ChangeLog +++ b/plugins/exchange-operations/ChangeLog @@ -1,3 +1,10 @@ +2005-08-29 Praveen Kumar <kpraveen@novell.com> + + ** Fixes bug 314762 + + * exchange-config-listener.c (remove_selected_non_offline_esources) : + Fixing a nasty infinite loop by swapping an if and while block. + 2005-08-26 Shakti Sen <shprasad@novell.com> * exchange-folder.c (org_gnome_exchange_folder_unsubscribe): Fixes the 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); |