simplify cx_json_value_nothing initialization

Sun, 20 Oct 2024 10:49:38 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 20 Oct 2024 10:49:38 +0200
changeset 938
9d02bb5dcc3c
parent 937
10123f4d5618
child 939
0bb7258366a0

simplify cx_json_value_nothing initialization

src/json.c file | annotate | diff | comparison | revisions
--- a/src/json.c	Sat Oct 19 17:25:11 2024 +0200
+++ b/src/json.c	Sun Oct 20 10:49:38 2024 +0200
@@ -39,7 +39,7 @@
 
 #define PARSER_STATES_ALLOC 32
 
-static CxJsonValue cx_json_value_nothing = {CX_JSON_NOTHING, {0}};
+static CxJsonValue cx_json_value_nothing = {CX_JSON_NOTHING};
 
 
 static int token_append(CxJsonToken *token, const char *buf, size_t len) {

mercurial