1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -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;
}
if (name) {
bookmark->password = strdup(name);
bookmark->name = strdup(name);
} else {
bookmark->password = NULL;
bookmark->name = NULL;
}
if (g_strcmp0(autojoin_str, "on") == 0) {