From 34334e5d3f89fe7c1e07e776761f5fa614e67fb7 Mon Sep 17 00:00:00 2001 From: Eric Haszlakiewicz Date: Mon, 29 Jun 2020 02:35:26 +0000 Subject: [PATCH] Replace one call to json_object_new_array() with json_object_new_array_ext() to ensure it at least minimally works. --- tests/test1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test1.c b/tests/test1.c index 98546bfa..6682120c 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)); -- 2.47.2