mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Don't free default account name until it has been lowercased
This commit is contained in:
parent
b5d4a52dfa
commit
5cf7ef0b4f
@ -125,11 +125,11 @@ cmd_connect(gchar **args, struct cmd_help_t help)
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
g_free(def);
|
||||
def = NULL;
|
||||
|
||||
char *lower = g_utf8_strdown(user, -1);
|
||||
char *jid;
|
||||
g_free(def);
|
||||
def = NULL;
|
||||
|
||||
ProfAccount *account = accounts_get_account(lower);
|
||||
if (account != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user