mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-24 11:56:21 +00: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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user