Browse Source

Replace one call to json_object_new_array() with json_object_new_array_ext() to ensure it at least minimally works.

tags/json-c-0.15-20200726
Eric Haszlakiewicz 5 years ago
parent
commit
34334e5d3f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tests/test1.c

+ 1
- 1
tests/test1.c View File

@@ -250,7 +250,7 @@ int main(int argc, char **argv)
test_array_del_idx(); test_array_del_idx();
test_array_list_expand_internal(); test_array_list_expand_internal();


my_array = json_object_new_array();
my_array = json_object_new_array_ext(5);
json_object_array_add(my_array, json_object_new_int(3)); json_object_array_add(my_array, json_object_new_int(3));
json_object_array_add(my_array, json_object_new_int(1)); json_object_array_add(my_array, json_object_new_int(1));
json_object_array_add(my_array, json_object_new_int(2)); json_object_array_add(my_array, json_object_new_int(2));


Loading…
Cancel
Save