summaryrefslogtreecommitdiff
path: root/src/ast/ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast/ast.c')
-rw-r--r--src/ast/ast.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ast/ast.c b/src/ast/ast.c
index dee2eed..712f6e3 100644
--- a/src/ast/ast.c
+++ b/src/ast/ast.c
@@ -52,6 +52,7 @@ void ast_free(ASTNode *node)
Type *type_new(TypeKind kind)
{
Type *t = xmalloc(sizeof(Type));
+ memset(t, 0, sizeof(Type));
t->kind = kind;
t->name = NULL;
t->inner = NULL;