From be0f892aad2b16990ef0dc6b66e970b3954db94f Mon Sep 17 00:00:00 2001 From: Alberto Garcia Date: Wed, 28 Nov 2007 11:39:48 +0000 Subject: [PATCH] Don't set the username if it's empty in update_tny_account() or it will cause an assertion in tinymail to fail pmo-trunk-r3835 --- src/modest-tny-account.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modest-tny-account.c b/src/modest-tny-account.c index 9a53421..7fcd6b2 100644 --- a/src/modest-tny-account.c +++ b/src/modest-tny-account.c @@ -360,7 +360,7 @@ update_tny_account (TnyAccount *tny_account, ModestAccountMgr *account_mgr, MODEST_ACCOUNT_OPTION_CHECK_ALL); } - if (account_data->username) + if (account_data->username && strlen(account_data->username) > 0) tny_account_set_user (tny_account, account_data->username); if (account_data->hostname) tny_account_set_hostname (tny_account, account_data->hostname); -- 1.7.9.5