From 5cf7ef0b4f214884136b15ecad7ce860659f03b4 Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 14 Jan 2015 21:52:13 +0000 Subject: Don't free default account name until it has been lowercased --- src/command/commands.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/command/commands.c b/src/command/commands.c index 9fd6eed4..98fe72e4 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -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) { -- cgit 1.4.1-2-gfad0 value='50d6c374de23adebc7a3a2742c6c20dfd87010fb'>this commit Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log blame commit diff stats
path: root/html/baremetal/308allocate-array.subx.html
blob: f9c509802b991851b10a67d5a292c3658d7feae5 (plain) (tree)