Skip to content

Commit

Permalink
Fix position of a comment in string parsing
Browse files Browse the repository at this point in the history
Fixes #214
  • Loading branch information
pt300 committed Oct 14, 2021
1 parent 1aa2e8f commit 25647e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jsmn.h
Expand Up @@ -196,10 +196,10 @@ static int jsmn_parse_string(jsmn_parser *parser, const char *js,
jsmntok_t *token;

int start = parser->pos;

parser->pos++;


/* Skip starting quote */
parser->pos++;

for (; parser->pos < len && js[parser->pos] != '\0'; parser->pos++) {
char c = js[parser->pos];

Expand Down

0 comments on commit 25647e6

Please sign in to comment.