Commit b5cf50bf authored by Brendan Cully's avatar Brendan Cully

Don't dereference null ImapUser in new getlogin function.

parent 3f57f4fb
......@@ -172,8 +172,10 @@ int mutt_account_getlogin (ACCOUNT* account)
{
if (ImapLogin)
strfcpy (account->login, ImapLogin, sizeof (account->login));
else
strfcpy (account->login, ImapUser, sizeof (account->login));
else {
mutt_account_getuser (account);
strfcpy (account->login, account->user, sizeof (account->login));
}
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment