about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/bookmark.c4
1 files changed, 2 insertions, 2 deletions
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) {