Skip empty array

FossilOrigin-Name: 500e1438f9ca9ea2d505fe0e679765abace17b4f4494cbbb36687c7f5a956f02
This commit is contained in:
me@ow.nekobit.net 2022-04-12 19:13:26 +00:00
parent 4a0862321e
commit c40977c3f0

View file

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