1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Fix segfault in new bookmark feature

Fix 88c36745fe
Copy paste mistake.
This commit is contained in:
Michael Vetter 2020-05-22 16:20:02 +02:00
parent 36f2569e53
commit c8be052ec8

View File

@ -122,9 +122,9 @@ bookmark_add(const char *jid, const char *nick, const char *password, const char
bookmark->password = NULL; bookmark->password = NULL;
} }
if (name) { if (name) {
bookmark->password = strdup(name); bookmark->name = strdup(name);
} else { } else {
bookmark->password = NULL; bookmark->name = NULL;
} }
if (g_strcmp0(autojoin_str, "on") == 0) { if (g_strcmp0(autojoin_str, "on") == 0) {