aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2022-08-04 17:08:38 +0200
committerTheJackiMonster <thejackimonster@gmail.com>2022-08-04 17:08:38 +0200
commit9b4dfe4d426c54533eb4f03ee2b3e98db3ba0d2e (patch)
tree7017af7b95a7778ee78c1b4a09e4976f00c91e4a
parent59b295a4167d6a42a3946e175ec98c5252eeb61b (diff)
downloadmessenger-gtk-9b4dfe4d426c54533eb4f03ee2b3e98db3ba0d2e.tar.gz
messenger-gtk-9b4dfe4d426c54533eb4f03ee2b3e98db3ba0d2e.zip
Prevented segfault caused by uninitialized last message attribute
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-rw-r--r--src/contact.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/contact.c b/src/contact.c
index 9c590a3..d23b6b7 100644
--- a/src/contact.c
+++ b/src/contact.c
@@ -34,6 +34,8 @@ contact_create_info(struct GNUNET_CHAT_Contact *contact)
34 34
35 MESSENGER_ContactInfo* info = g_malloc(sizeof(MESSENGER_ContactInfo)); 35 MESSENGER_ContactInfo* info = g_malloc(sizeof(MESSENGER_ContactInfo));
36 36
37 info->last_message = NULL;
38
37 info->name_labels = NULL; 39 info->name_labels = NULL;
38 info->name_avatars = NULL; 40 info->name_avatars = NULL;
39 41