Skip to content
Myr

Fix use of uninitialized value in check_literal (fix #3316) (#3324)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by itchyny · committed by GitHub · parent ecea2d2 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/jv_parse.c+1 added-1 removed
514 unmodified lines
515 case '\'':516 return "Invalid string literal; expected \", but got '";517 case 'n':518 // if it starts with 'n', it could be a literal "nan"519 if (p->tokenbuf[1] == 'u') {519 if (p->tokenpos > 1 && p->tokenbuf[1] == 'u') {520 pattern = "null"; plen = 4; v = jv_null();521 }522 }523 if (pattern) {
390 unmodified lines