mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
check account->name == NULL
This commit is contained in:
parent
ef49afdc63
commit
175963eb51
@ -118,6 +118,10 @@ jabber_conn_status_t
|
|||||||
jabber_connect_with_account(ProfAccount *account, const char * const passwd)
|
jabber_connect_with_account(ProfAccount *account, const char * const passwd)
|
||||||
{
|
{
|
||||||
FREE_SET_NULL(saved_user.account);
|
FREE_SET_NULL(saved_user.account);
|
||||||
|
|
||||||
|
if (account->name == NULL)
|
||||||
|
return JABBER_UNDEFINED;
|
||||||
|
|
||||||
saved_user.account = strdup(account->name);
|
saved_user.account = strdup(account->name);
|
||||||
log_info("Connecting with account: %s", account->name);
|
log_info("Connecting with account: %s", account->name);
|
||||||
return jabber_connect(account->jid, passwd, account->server);
|
return jabber_connect(account->jid, passwd, account->server);
|
||||||
|
Loading…
Reference in New Issue
Block a user