about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorDmitry Podgorny <pasis.ua@gmail.com>2020-10-19 00:00:00 +0300
committerDmitry Podgorny <pasis.ua@gmail.com>2020-10-19 00:00:00 +0300
commit3a86b997caab669785bd9cd62a67cd54eceb2d1f (patch)
tree8c5aa8b1c892d622cd2424eb158770f9614fda6b /src
parent693fdcce6532efa77092d23e9754880671a0c8b2 (diff)
downloadprofani-tty-3a86b997caab669785bd9cd62a67cd54eceb2d1f.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/xmpp/bookmark.c1
1 files changed, 1 insertions, 0 deletions
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;