From c8be052ec838325417d65960cfb637a7836d0170 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Fri, 22 May 2020 16:20:02 +0200 Subject: Fix segfault in new bookmark feature Fix 88c36745fe3f568f09fcd4078fc760a52e826eb7 Copy paste mistake. --- src/xmpp/bookmark.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/xmpp') diff --git a/src/xmpp/bookmark.c b/src/xmpp/bookmark.c index a4ca6309..b23ad24b 100644 --- a/src/xmpp/bookmark.c +++ b/src/xmpp/bookmark.c @@ -122,9 +122,9 @@ bookmark_add(const char *jid, const char *nick, const char *password, const char bookmark->password = NULL; } if (name) { - bookmark->password = strdup(name); + bookmark->name = strdup(name); } else { - bookmark->password = NULL; + bookmark->name = NULL; } if (g_strcmp0(autojoin_str, "on") == 0) { -- cgit 1.4.1-2-gfad0