diff options
| author | Eric Haszlakiewicz <erh+git@nimenees.com> | 2020-06-29 02:35:26 +0000 |
|---|---|---|
| committer | Eric Haszlakiewicz <erh+git@nimenees.com> | 2020-06-29 02:35:26 +0000 |
| commit | 34334e5d3f89fe7c1e07e776761f5fa614e67fb7 (patch) | |
| tree | b4a3eef12a0551995d6d38526f6685a16869e6a1 | |
| parent | 0b67caec1a72c1e89d8a34f9094ad40ac6d9faf9 (diff) | |
| download | json-c-34334e5d3f89fe7c1e07e776761f5fa614e67fb7.tar.gz | |
Replace one call to json_object_new_array() with json_object_new_array_ext() to ensure it at least minimally works.
| -rw-r--r-- | tests/test1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test1.c b/tests/test1.c index 98546bf..6682120 100644 --- a/tests/test1.c +++ b/tests/test1.c @@ -250,7 +250,7 @@ int main(int argc, char **argv) test_array_del_idx(); 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(1)); json_object_array_add(my_array, json_object_new_int(2)); |
