py/lexer: Add missing initialisation for fstring_args_idx.
This was missed in 692d36d779
. Probably
never noticed because everything enables `MICROPY_GC_CONSERVATIVE_CLEAR`,
but found via ASAN thanks to @gwangmu & @chibinz.
This work was funded through GitHub Sponsors.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
parent
d83c1a43d4
commit
276bfa3146
@ -846,6 +846,7 @@ mp_lexer_t *mp_lexer_new(qstr src_name, mp_reader_t reader) {
|
|||||||
vstr_init(&lex->vstr, 32);
|
vstr_init(&lex->vstr, 32);
|
||||||
#if MICROPY_PY_FSTRINGS
|
#if MICROPY_PY_FSTRINGS
|
||||||
vstr_init(&lex->fstring_args, 0);
|
vstr_init(&lex->fstring_args, 0);
|
||||||
|
lex->fstring_args_idx = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// store sentinel for first indentation level
|
// store sentinel for first indentation level
|
||||||
|
Loading…
Reference in New Issue
Block a user