From ec3f0a41258099b4aa04ce236d062ffe0580f27d Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 1 Oct 2025 16:32:58 -0400 Subject: np: lex: Add TT_NONE token for invalid types Signed-off-by: Ian Moffett --- src/sys/np/core/np_lex.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/sys/np/core/np_lex.c') diff --git a/src/sys/np/core/np_lex.c b/src/sys/np/core/np_lex.c index 8eb5039..eb15a52 100644 --- a/src/sys/np/core/np_lex.c +++ b/src/sys/np/core/np_lex.c @@ -256,6 +256,7 @@ lex_nom(struct np_work *work, struct lex_token *res) } lex_st = &work->lex_st; + res->token = TT_NONE; /* Skip all whitespace */ while ((c = lex_pop(work)) != 0) { -- cgit v1.2.3