List NULL check

FossilOrigin-Name: ab304f8ad90c3c3b0b252f39a30676479b3ea6346e35c48b1d39747673bd4405
master
nekobit 4 months ago
parent d750371c7e
commit d924d969b1
  1. 3
      src/list.c

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

Loading…
Cancel
Save