# HG changeset patch # User Mike Becker # Date 1765401379 -3600 # Node ID fb314eeca7a4e5cc7204a75d84e48a47027ad3bd # Parent 500e3c744d878f730b4ee9f71486d99c6185141c fix that cxJsonFromString() stores NULL instead of a "nothing" value in case of a fill error diff -r 500e3c744d87 -r fb314eeca7a4 src/json.c --- a/src/json.c Wed Dec 10 22:03:08 2025 +0100 +++ b/src/json.c Wed Dec 10 22:16:19 2025 +0100 @@ -794,7 +794,7 @@ CxJsonStatus cx_json_from_string(const CxAllocator *allocator, cxstring str, CxJsonValue **value) { - *value = NULL; + *value = &cx_json_value_nothing; CxJson parser; cxJsonInit(&parser, allocator); if (cxJsonFill(&parser, str)) {