aboutsummaryrefslogtreecommitdiffstats
path: root/tests/json/t-json.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/json/t-json.c')
-rw-r--r--tests/json/t-json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/json/t-json.c b/tests/json/t-json.c
index 0d127a49..4fe74ed7 100644
--- a/tests/json/t-json.c
+++ b/tests/json/t-json.c
@@ -260,7 +260,7 @@ test_contains (cjson_t needle, cjson_t hay)
fprintf (stderr, "Depth mismatch. Expected child for %s\n",
nonnull (needle->string));
}
- if (test_contains (needle->child, hay->child))
+ else if (test_contains (needle->child, hay->child))
{
int found = 0;
cjson_t hit;