summaryrefslogtreecommitdiff
path: root/lexer.c
diff options
context:
space:
mode:
Diffstat (limited to 'lexer.c')
-rw-r--r--lexer.c2
1 files changed, 1 insertions, 1 deletions
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;