From 54fc8dbfb9c547d8e9a4b75dce4ce288e6dcc5cb Mon Sep 17 00:00:00 2001 From: "me@ow.nekobit.net" Date: Thu, 28 Apr 2022 15:02:43 +0000 Subject: [PATCH] Zero initialize on error FossilOrigin-Name: 7664561c3ee39857ce8286428f8ad8b13ef410cee9a8df765e9c7507b22fbcc2 --- src/status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/status.c b/src/status.c index 75d9c92..1e46ae1 100644 --- a/src/status.c +++ b/src/status.c @@ -56,7 +56,7 @@ int try_post_status(struct session* ssn, mastodont_t* api) { if (!(ssn->post.content)) return 1; - struct mstdnt_storage storage, *att_storage = NULL; + struct mstdnt_storage storage = { 0 }, *att_storage = NULL; char** files; size_t files_len;