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:
Jim Mussared 2023-09-28 12:26:51 +10:00 committed by Damien George
parent d83c1a43d4
commit 276bfa3146
1 changed files with 1 additions and 0 deletions

View File

@ -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