Source release v3.2.0
This commit is contained in:
3
third_party/jsmn/jsmn.c
vendored
3
third_party/jsmn/jsmn.c
vendored
@@ -198,6 +198,9 @@ int jsmn_parse(jsmn_parser *parser, const char *js, size_t len,
|
||||
break;
|
||||
}
|
||||
if (token->parent == -1) {
|
||||
if(token->type != type || parser->toksuper == -1) {
|
||||
return JSMN_ERROR_INVAL;
|
||||
}
|
||||
break;
|
||||
}
|
||||
token = &tokens[token->parent];
|
||||
|
||||
Reference in New Issue
Block a user