Zero initialize on error

FossilOrigin-Name: 7664561c3ee39857ce8286428f8ad8b13ef410cee9a8df765e9c7507b22fbcc2
This commit is contained in:
me@ow.nekobit.net 2022-04-28 15:02:43 +00:00
parent 67ca10565d
commit 54fc8dbfb9

View file

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