preproc: Use nasm_zalloc in new_Line

It's shorter

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2010-11-11 11:19:43 +03:00
parent 325768ed4c
commit 29cb0bb1b3

View File

@ -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));
}