From 101db2a43b1b3bb4c1c9c120cd5722f17a5f262d Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 26 Jun 2024 23:00:25 +0200 Subject: Zero-initialize rtype --- src/analyzer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/analyzer.c b/src/analyzer.c index d75efcf..6e6df9d 100644 --- a/src/analyzer.c +++ b/src/analyzer.c @@ -208,8 +208,7 @@ analyzedecl(struct azctx ctx, scope_t *scps, type_t *types, ast_t ast, types[i].kind = TYPE_CHECKING; pair_t p = ast.kids[i]; - type_t ltype, rtype; - ltype.kind = TYPE_UNSET; + type_t ltype = {0}, rtype = {0}; idx_t typeidx = aux.buf[p.lhs].decl.type; assert(typeidx != AST_EMPTY || p.rhs != AST_EMPTY); -- cgit v1.2.3