diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-09-02 15:46:22 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-09-02 15:46:22 +0200 |
commit | 5119a75cbc5473498a17855745a991df95e746d5 (patch) | |
tree | 9c40971d235840a70208b58d3e077c6f0aba21dd /src/json | |
parent | 8f0afa4b2734cb5d8bbe3bcbdc0c0999ebf7d066 (diff) |
-fix warnings
Diffstat (limited to 'src/json')
-rw-r--r-- | src/json/test_json.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/json/test_json.c b/src/json/test_json.c index fba72f84b..4dac3bf79 100644 --- a/src/json/test_json.c +++ b/src/json/test_json.c @@ -76,9 +76,11 @@ path_cb (void *cls, json_t *parent) { struct TestPath_Closure *cmp = cls; + unsigned int i; + if (NULL == cmp) return; - unsigned int i = cmp->results_length; + i = cmp->results_length; if ((0 != strcmp (cmp->object_ids[i], object_id)) || (1 != json_equal (cmp->parents[i], |