Notifications segfault fix

FossilOrigin-Name: 34ee1e9e8a61b38013a90ad9dad8e5726496bf6f24461365c643d0dc7a7e17f5
This commit is contained in:
nekobit 2022-06-27 18:16:33 +00:00
parent 9eb8d79dca
commit ba8a6c2027

View file

@ -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;