Check boolean
FossilOrigin-Name: 7601100a897fb67f13f5a4ca5e2e563f9cf1112738040d75a10b9db04bb68928
This commit is contained in:
parent
15f1142186
commit
b1c40c9a64
1 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,8 @@ struct _mstdnt_relationship_flags_args
|
|||
static void _mstdnt_val_relationship_flag_call(cJSON* v, void* _type)
|
||||
{
|
||||
struct _mstdnt_relationship_flags_args* arg = _type;
|
||||
*(arg->flags) |= arg->flag;
|
||||
if (cJSON_IsTrue(v))
|
||||
*(arg->flags) |= arg->flag;
|
||||
}
|
||||
|
||||
int mstdnt_relationship_json(struct mstdnt_relationship* relationship, cJSON* js)
|
||||
|
|
Loading…
Reference in a new issue