aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-06-26 23:00:25 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-06-26 23:00:25 +0200
commit101db2a43b1b3bb4c1c9c120cd5722f17a5f262d (patch)
tree782d0318b2bfdee9a72fa1afdf37a910b228bca8 /src
parent952a5ec9289a2f9d8a95f76357906d1dcbe39966 (diff)
Zero-initialize rtype
Diffstat (limited to 'src')
-rw-r--r--src/analyzer.c3
1 files changed, 1 insertions, 2 deletions
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);