[telepathy-mission-control/master] McdAccountManager: _mcd_account_manager_store_account_connections: remove spurious assertion

Simon McVittie simon.mcvittie at collabora.co.uk
Tue Apr 7 08:27:31 PDT 2009


There's no point in asserting about the value of an uninitialized piece
of stack that we're about to use in g_hash_table_iter_next. valgrind
catches this.
---
 src/mcd-account-manager.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/mcd-account-manager.c b/src/mcd-account-manager.c
index ce4c8ec..ee2b055 100644
--- a/src/mcd-account-manager.c
+++ b/src/mcd-account-manager.c
@@ -949,7 +949,6 @@ _mcd_account_manager_store_account_connections (McdAccountManager *manager)
     FILE *file;
 
     g_return_if_fail (MCD_IS_ACCOUNT_MANAGER (manager));
-    g_return_if_fail (account != NULL);
     priv = manager->priv;
 
     file = fopen (priv->account_connections_file, "w");
-- 
1.5.6.5




More information about the telepathy-commits mailing list