harec

[hare] Hare compiler, written in C11 for POSIX OSs
Log | Files | Refs | README | LICENSE

commit 55bfdda44eb5bbf3e4e2a245cc18367220da8560
parent c7d58402858381216bb1c7d6559f98b1104eb732
Author: Drew DeVault <sir@cmpwn.com>
Date:   Tue,  7 Jun 2022 21:54:46 +0200

check.c: fix uninitialized idecl issue

Diffstat:
Msrc/check.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/check.c b/src/check.c @@ -3704,8 +3704,8 @@ resolve_enum_field(struct context *ctx, const struct scope_object *obj) const struct scope_object * resolve_enum_alias(struct context *ctx, const struct scope_object *obj) { - struct incomplete_declaration *idecl; struct identifier sub; + struct incomplete_declaration *idecl = NULL; const struct scope_object *orig = obj; switch (obj->otype) { case O_SCAN: