Skip empty array
FossilOrigin-Name: 500e1438f9ca9ea2d505fe0e679765abace17b4f4494cbbb36687c7f5a956f02
This commit is contained in:
parent
4a0862321e
commit
c40977c3f0
1 changed files with 5 additions and 0 deletions
|
@ -61,6 +61,11 @@ char* _mstdnt_query_string(mastodont_t* data,
|
|||
{
|
||||
escape_str = NULL;
|
||||
|
||||
/* If array is NULL, skip */
|
||||
if (params[i].type == _MSTDNT_QUERY_ARRAY &&
|
||||
!(params[i].value.a.arr && params[i].value.a.arr_len))
|
||||
continue;
|
||||
|
||||
/* Start up array */
|
||||
if (params[i].type == _MSTDNT_QUERY_ARRAY && arr_ind == 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue