ucx/json.c

changeset 1035
86d3a45dc928
parent 1016
ccde46662db7
--- a/ucx/json.c	Wed Dec 31 09:16:02 2025 +0100
+++ b/ucx/json.c	Wed Dec 31 10:06:15 2025 +0100
@@ -485,7 +485,7 @@
         CxJsonValue *parent = json->vbuf.data[json->vbuf.size - 1];
         assert(parent != NULL);
         if (parent->type == CX_JSON_ARRAY) {
-            if (cx_array_add_a(json->allocator, parent->array, &v)) {
+            if (cx_array_add_a(json->allocator, parent->array, v)) {
                 goto create_json_value_exit_error; // LCOV_EXCL_LINE
             }
         } else if (parent->type == CX_JSON_OBJECT) {

mercurial