From 3a86b997caab669785bd9cd62a67cd54eceb2d1f Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Mon, 19 Oct 2020 00:00:00 +0300 Subject: [PATCH] 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. --- src/xmpp/bookmark.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xmpp/bookmark.c b/src/xmpp/bookmark.c index b603a71a..65c3bd01 100644 --- a/src/xmpp/bookmark.c +++ b/src/xmpp/bookmark.c @@ -126,6 +126,7 @@ bookmark_add(const char* jid, const char* nick, const char* password, const char } else { bookmark->name = NULL; } + bookmark->ext_gajim_minimize = 0; if (g_strcmp0(autojoin_str, "on") == 0) { bookmark->autojoin = TRUE;