From ba8a6c20279c7615610978d4327dc7ec73c37e70 Mon Sep 17 00:00:00 2001 From: nekobit Date: Mon, 27 Jun 2022 18:16:33 +0000 Subject: [PATCH] Notifications segfault fix FossilOrigin-Name: 34ee1e9e8a61b38013a90ad9dad8e5726496bf6f24461365c643d0dc7a7e17f5 --- src/notifications.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/notifications.c b/src/notifications.c index 872e0bf..7358dc3 100644 --- a/src/notifications.c +++ b/src/notifications.c @@ -183,9 +183,9 @@ void content_notifications(struct session* ssn, mastodont_t* api, char** data) struct mstdnt_args m_args; set_mstdnt_args(&m_args, ssn); char* page, *notif_html = NULL; - struct mstdnt_storage storage; - struct mstdnt_notification* notifs; - size_t notifs_len; + struct mstdnt_storage storage = { 0 }; + struct mstdnt_notification* notifs = NULL; + size_t notifs_len = 0; char* start_id; char* navigation_box = NULL;