diff options
| author | Jim Mussared <jim.mussared@gmail.com> | 2023-09-28 12:26:51 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-09-29 13:58:26 +1000 |
| commit | 276bfa3146534f5b6a0130309f3b166fb2a77e25 (patch) | |
| tree | 2d48cffda3e831a1527560e2bfd2dd96e945b722 /py/lexer.c | |
| parent | d83c1a43d4d31100f81bcd565236235efa9d1b90 (diff) | |
py/lexer: Add missing initialisation for fstring_args_idx.
This was missed in 692d36d779192f32371f7f9daa845b566f26968d. 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>
Diffstat (limited to 'py/lexer.c')
| -rw-r--r-- | py/lexer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/lexer.c b/py/lexer.c index b22cc2eae..6b28f2215 100644 --- a/py/lexer.c +++ b/py/lexer.c @@ -846,6 +846,7 @@ mp_lexer_t *mp_lexer_new(qstr src_name, mp_reader_t reader) { vstr_init(&lex->vstr, 32); #if MICROPY_PY_FSTRINGS vstr_init(&lex->fstring_args, 0); + lex->fstring_args_idx = 0; #endif // store sentinel for first indentation level |
