mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-31 18:20:22 +08:00
preproc: Use nasm_zalloc in new_Line
It's shorter Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
325768ed4c
commit
29cb0bb1b3
@ -1376,12 +1376,9 @@ static char *detoken(Token * tlist, bool expand_locals)
|
||||
/*
|
||||
* Initialize a new Line
|
||||
*/
|
||||
static Line *new_Line(void)
|
||||
static inline Line *new_Line(void)
|
||||
{
|
||||
Line *l = nasm_malloc(sizeof(Line));
|
||||
l->next = NULL;
|
||||
l->first = NULL;
|
||||
return l;
|
||||
return (Line *)nasm_zalloc(sizeof(Line));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user