From 65d1eca5c6cb8625144ef1eb2a5dc109473f1fc3 Mon Sep 17 00:00:00 2001 From: "C. Masloch" Date: Mon, 21 Nov 2022 11:24:18 -0800 Subject: [PATCH] preproc: fix incorrect use of nasm_new() in alloc_Token() The argument to nasm_new() is the pointer, not the indirection from the pointer. This code is only relevant when compiled without token recycling (TOKEN_BLOCKSIZE not set), but it is still wrong... Signed-off-by: H. Peter Anvin --- asm/preproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asm/preproc.c b/asm/preproc.c index 4504b111..687431d9 100644 --- a/asm/preproc.c +++ b/asm/preproc.c @@ -1819,7 +1819,7 @@ static void delete_Blocks(void) static inline Token *alloc_Token(void) { Token *t; - nasm_new(*t); + nasm_new(t); return t; }