Skip to content

Commit

Permalink
Seems to actually fix #81
Browse files Browse the repository at this point in the history
  • Loading branch information
pt300 committed Oct 1, 2016
1 parent ad72aac commit 4ce4404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsmn.c
Expand Up @@ -198,7 +198,7 @@ int jsmn_parse(jsmn_parser *parser, const char *js, size_t len,
break;
}
if (token->parent == -1) {
if(token->type != type) {
if(token->type != type || parser->toksuper == -1) {
return JSMN_ERROR_INVAL;
}
break;
Expand Down

0 comments on commit 4ce4404

Please sign in to comment.