harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 4bdbec94afefec9a35656a055bb5bdc8f871366c
parent c1caaf00bea2415724b969633cca2e3b2b51a4e6
Author: Ashish SHUKLA <ashish.is@lostca.se>
Date:   Tue, 26 Apr 2022 09:06:41 +0530

Fix uninitialized use warning

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

diff --git a/src/check.c b/src/check.c @@ -1364,7 +1364,7 @@ check_expr_compound(struct context *ctx, struct expressions **next = &list->next; const struct ast_expression_list *alist = &aexpr->compound.list; - struct expression *lexpr; + struct expression *lexpr = NULL; while (alist) { lexpr = xcalloc(1, sizeof(struct expression)); check_expression(ctx, alist->expr, lexpr, &builtin_type_void);