summaryrefslogtreecommitdiff
path: root/src/sys/np
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/np')
-rw-r--r--src/sys/np/core/np_lex.c1
1 files changed, 1 insertions, 0 deletions
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);