fix typo in assert()

Sat, 04 Jan 2025 11:55:31 +0100

author
Mike Becker <universe@uap-core.de>
date
Sat, 04 Jan 2025 11:55:31 +0100
changeset 1083
cf54e413793c
parent 1082
46cdc8689fc4
child 1084
0bcd71d2615a

fix typo in assert()

src/json.c file | annotate | diff | comparison | revisions
--- 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