diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-05-22 16:20:02 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-05-22 16:20:02 +0200 |
commit | c8be052ec838325417d65960cfb637a7836d0170 (patch) | |
tree | 7579e7a1e2941873c049be7b11f7cf874220b607 /src/xmpp | |
parent | 36f2569e53e67fda6023c5ec5f6a7714cbce1946 (diff) | |
download | profani-tty-c8be052ec838325417d65960cfb637a7836d0170.tar.gz |
Fix segfault in new bookmark feature
Fix 88c36745fe3f568f09fcd4078fc760a52e826eb7 Copy paste mistake.
Diffstat (limited to 'src/xmpp')
-rw-r--r-- | src/xmpp/bookmark.c | 4 |
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) { |