From: Alexey Konovalov Date: Tue, 27 Sep 2016 08:20:49 +0000 (+0300) Subject: fixed wrong object name in json_object_all_values_equal X-Git-Tag: json-c-0.13-20171207~123^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F273%2Fhead;p=thirdparty%2Fjson-c.git fixed wrong object name in json_object_all_values_equal --- diff --git a/json_object.c b/json_object.c index f657afe5..6eb7ce64 100644 --- a/json_object.c +++ b/json_object.c @@ -1062,7 +1062,7 @@ static int json_object_all_values_equal(struct json_object* jso1, /* Iterate over jso1 keys and see if they exist and are equal in jso2 */ json_object_object_foreachC(jso1, iter) { - if (!lh_table_lookup_ex(jso1->o.c_object, (void*)iter.key, + if (!lh_table_lookup_ex(jso2->o.c_object, (void*)iter.key, (void**)&sub)) return 0; if (!json_object_equal(iter.val, sub))