commit 56359312644f76941de1878d33a1a0b840be8056
parent bbafe7be06ab3604ce1feb1fc7bf511ba0e8bf03
Author: Armin Weigl <tb46305@gmail.com>
Date: Sat, 2 Jul 2022 13:37:03 +0200
lookup_atype: drop unused variable temp
Signed-off-by: Armin Weigl <tb46305@gmail.com>
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/type_store.c b/src/type_store.c
@@ -866,8 +866,7 @@ lookup_atype_with_dimensions(struct type_store *store, const struct type **type,
static const struct type *
lookup_atype(struct type_store *store, const struct ast_type *atype)
{
- struct type temp = {0};
- const struct type *type = &temp;
+ const struct type *type = NULL;
lookup_atype_with_dimensions(store, &type, atype);
return type;
}