From 5d842584fbdf55b6e1d02f3839e11a67ffe5d893 Mon Sep 17 00:00:00 2001 From: Tiny1028 <71199676+Tiny1028@users.noreply.github.com> Date: Fri, 4 Feb 2022 21:26:56 +0800 Subject: [PATCH] Update leptjson.c --- tutorial01_answer/leptjson.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tutorial01_answer/leptjson.c b/tutorial01_answer/leptjson.c index f4f2b17b..5fead438 100644 --- a/tutorial01_answer/leptjson.c +++ b/tutorial01_answer/leptjson.c @@ -63,6 +63,7 @@ int lept_parse(lept_value* v, const char* json) { lept_parse_whitespace(&c); if (*c.json != '\0') ret = LEPT_PARSE_ROOT_NOT_SINGULAR; + v->type = LEPT_NULL; } return ret; }