src/json.c

changeset 1083
cf54e413793c
parent 1082
46cdc8689fc4
--- a/src/json.c	Fri Jan 03 19:18:00 2025 +0100
+++ b/src/json.c	Sat Jan 04 11:55:31 2025 +0100
@@ -68,7 +68,7 @@
 }
 
 static int json_add_objvalue(CxJsonValue *objv, CxJsonObjValue member) {
-    assert(obj->type == CX_JSON_OBJECT);
+    assert(objv->type == CX_JSON_OBJECT);
     const CxAllocator * const al = objv->allocator;
     CxJsonObject *obj = &(objv->value.object);
 

mercurial