X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-account-mgr-helpers.c;h=989663df04806b36a36bee627283e5b8d3b85b4c;hp=3a23316b405ddc97c48523d12b7d446635338b0b;hb=ab12dc0317717c5e60c3309fd9dc8b162efd9cb2;hpb=f49b0ce9f15db9d9ecfc6b09ec24b017a2d0fcaf diff --git a/src/modest-account-mgr-helpers.c b/src/modest-account-mgr-helpers.c index 3a23316..989663d 100644 --- a/src/modest-account-mgr-helpers.c +++ b/src/modest-account-mgr-helpers.c @@ -33,6 +33,7 @@ #include #include #include +#include static const gchar * null_means_empty (const gchar * str); @@ -321,8 +322,11 @@ modest_account_mgr_get_server_account_has_password (ModestAccountMgr *self, cons TRUE /* server account */); if (password && strlen (password)) { result = TRUE; - } + /* Clean password */ + bzero (password, strlen (password)); + } + g_free (password); return result; }