1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

xmpp/bookmark: don't use uninitialised field

When a bookmark is created with '/bookmark add' command,
ext_gajim_minimize remains uninitialised in new bookmark object and
is read further in _send_bookmarks().

Initialise the field with 0.

Fixes #1432.
This commit is contained in:
Dmitry Podgorny 2020-10-19 00:00:00 +03:00
parent 693fdcce65
commit 3a86b997ca

View File

@ -126,6 +126,7 @@ bookmark_add(const char* jid, const char* nick, const char* password, const char
} else { } else {
bookmark->name = NULL; bookmark->name = NULL;
} }
bookmark->ext_gajim_minimize = 0;
if (g_strcmp0(autojoin_str, "on") == 0) { if (g_strcmp0(autojoin_str, "on") == 0) {
bookmark->autojoin = TRUE; bookmark->autojoin = TRUE;