messenger-gtk

Gtk+3 graphical user interfaces for GNUnet Messenger
Log | Files | Refs | Submodules | README | LICENSE

commit 9b4dfe4d426c54533eb4f03ee2b3e98db3ba0d2e
parent 59b295a4167d6a42a3946e175ec98c5252eeb61b
Author: TheJackiMonster <thejackimonster@gmail.com>
Date:   Thu,  4 Aug 2022 17:08:38 +0200

Prevented segfault caused by uninitialized last message attribute

Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>

Diffstat:
Msrc/contact.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/contact.c b/src/contact.c @@ -34,6 +34,8 @@ contact_create_info(struct GNUNET_CHAT_Contact *contact) MESSENGER_ContactInfo* info = g_malloc(sizeof(MESSENGER_ContactInfo)); + info->last_message = NULL; + info->name_labels = NULL; info->name_avatars = NULL;