From: Alberto Garcia Date: Wed, 28 Nov 2007 11:39:48 +0000 (+0000) Subject: Don't set the username if it's empty in update_tny_account() X-Git-Tag: git_migration_finished~2000 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=be0f892aad2b16990ef0dc6b66e970b3954db94f 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 --- 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);