From d464a1d3a62d620b6336131c355467bdc273e3c5 Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Sat, 15 Jan 2022 13:03:11 +0000 Subject: Rework printer to add vertical padding too --- lexer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lexer.c') diff --git a/lexer.c b/lexer.c index bf2aaa4..4c9e8f2 100644 --- a/lexer.c +++ b/lexer.c @@ -11,7 +11,7 @@ lexline(Rune *line) { int offset = 0; int len = runestrlen(line); - Statement *stmt = malloc(sizeof(Statement)); + Statement *stmt = emalloc(sizeof(Statement)); stmt->ntoks = 0; stmt->toks = mallocz(sizeof(Datum) * MAX_LINE_TOKENS, 1); stmt->next = nil; -- cgit v1.2.3