asn1: Don't check for NULL when it's not (template_members())

This commit is contained in:
Nicolas Williams
2023-01-04 16:07:13 -06:00
parent 933f805079
commit ae4ccb87da

View File

@@ -1238,7 +1238,7 @@ template_members(struct templatehead *temp,
is_primitive_type(t->subtype);
if (t->tag.tagenv == TE_IMPLICIT) {
Type *t2 = t->subtype ? t->subtype : t->symbol->type;
Type *t2 = t->subtype;
while (t2->type == TType && (t2->subtype || t2->symbol->type))
t2 = t2->subtype ? t2->subtype : t2->symbol->type;