src/json.c

changeset 1057
4e8436c3e806
parent 1055
221e2e2f2c06
child 1060
0a7c1bb2372d
--- a/src/json.c	Thu Dec 26 19:26:37 2024 +0100
+++ b/src/json.c	Thu Dec 26 20:33:06 2024 +0100
@@ -714,6 +714,7 @@
     v->type = CX_JSON_STRING;
     cxmutstr s = cx_strdup_a(allocator, str);
     if (s.ptr == NULL) { cxFree(allocator, v); return NULL; }
+    v->value.string = s;
     return v;
 }
 

mercurial