src/json.c

changeset 1592
c1e17411004f
parent 1591
ef2f47fc5f0c
child 1594
4b9537f93239
--- a/src/json.c	Sat Dec 13 16:41:10 2025 +0100
+++ b/src/json.c	Sat Dec 13 16:47:07 2025 +0100
@@ -1444,7 +1444,7 @@
 }
 
 int cxJsonCompare(const CxJsonValue *json, const CxJsonValue *other) {
-    if (json == NULL && other == NULL) return 0;
+    if (json == other) return 0;
     if (json == NULL || other == NULL) return -1;
     if (json->type != other->type) {
         if (!cxJsonIsNumber(json)) return -1;

mercurial