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:
parent
36f2569e53
commit
c8be052ec8
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user