We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1635f79 commit 5a01839Copy full SHA for 5a01839
tutorial01/leptjson.c
@@ -63,12 +63,9 @@ int lept_parse(lept_value* v, const char* json) {
63
if (lept_parse_result == LEPT_PARSE_OK) {
64
lept_parse_whitespace(&c);
65
if (*c.json != '\0')
66
- return LEPT_PARSE_ROOT_NOT_SINGULAR;
67
- else
68
- return LEPT_PARSE_OK;
+ lept_parse_result = LEPT_PARSE_ROOT_NOT_SINGULAR;
69
}
70
71
- return lept_parse_result;
+ return lept_parse_result;
72
73
74
lept_type lept_get_type(const lept_value* v) {
0 commit comments