From db61b5925966587717a17d48339bc8fea58a142b Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 1 Oct 2025 15:16:46 -0400 Subject: np: Allocate memory for identifier 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 cecb425..8eb5039 100644 --- a/src/sys/np/core/np_lex.c +++ b/src/sys/np/core/np_lex.c @@ -147,6 +147,7 @@ lex_matchstr(struct np_work *work, char c, struct lex_token *res) } while ((c = lex_pop(work)) != 0); id[id_idx] = '\0'; + res->val_str = ptrbox_strdup(id, work->work_mem); /* Match the tokens */ error = lex_cmptok(id, res); -- cgit v1.2.3