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; }