Browse Source

Merge pull request #273 from konoal/master

fixed wrong object name in json_object_all_values_equal
tags/json-c-0.13-20171207
Eric Haszlakiewicz GitHub 9 years ago
parent
commit
5fd99e62ed
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      json_object.c

+ 1
- 1
json_object.c View File

@@ -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 */ /* Iterate over jso1 keys and see if they exist and are equal in jso2 */
json_object_object_foreachC(jso1, iter) { 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)) (void**)&sub))
return 0; return 0;
if (!json_object_equal(iter.val, sub)) if (!json_object_equal(iter.val, sub))


Loading…
Cancel
Save