List NULL check

FossilOrigin-Name: ab304f8ad90c3c3b0b252f39a30676479b3ea6346e35c48b1d39747673bd4405
This commit is contained in:
nekobit 2022-06-14 15:21:48 +00:00
parent d750371c7e
commit d924d969b1

View file

@ -40,8 +40,9 @@ static void _mstdnt_val_replies_policy_call(cJSON* v, void* _type)
int mstdnt_list_json(struct mstdnt_list* list, cJSON* js)
{
if (!list) return 1;
cJSON* v;
/* Zero out */
memset(list, 0, sizeof(struct mstdnt_list));