List NULL check
FossilOrigin-Name: ab304f8ad90c3c3b0b252f39a30676479b3ea6346e35c48b1d39747673bd4405
This commit is contained in:
parent
d750371c7e
commit
d924d969b1
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue