1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2026-03-02 04:09:18 +00:00

added unit tests

This commit is contained in:
Falk Werner
2020-07-12 16:28:15 +02:00
parent fe32a31e09
commit 8a7a288b97
2 changed files with 94 additions and 2 deletions

View File

@@ -78,13 +78,12 @@ wfp_impl_json_array_get(
struct wfp_json const * json,
size_t pos)
{
struct wfp_json const * result = NULL;
if ((WFP_JSON_ARRAY == json->type) && (pos < json->value.a.size))
{
return &(json->value.a.items[pos]);
}
return result;
return &wfp_json_null;
}
size_t