diff options
author | pt300 <pt300@tlen.pl> | 2016-10-01 18:19:20 +0200 |
---|---|---|
committer | pt300 <pt300@tlen.pl> | 2016-10-01 18:19:20 +0200 |
commit | 4ce44040579e65755d14a3d7dabdae0913959a24 (patch) | |
tree | 4fcd10f6d67ba7535ca578742b539dae02c7b862 | |
parent | ad72aac67ab84280cbd7e08b2668ef7fe5db046e (diff) |
Seems to actually fix zserge/jsmn#81
-rw-r--r-- | jsmn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |