asn1: Don't check for NULL when it's not (template_members())
authorNicolas Williams <nico@twosigma.com>
Wed, 4 Jan 2023 22:07:13 +0000 (16:07 -0600)
committerNicolas Williams <nico@twosigma.com>
Wed, 4 Jan 2023 22:07:13 +0000 (16:07 -0600)
lib/asn1/gen_template.c

index ad25fcfb29d3a29a0015a55c97822663e7410864..67d18ecfff5bbabadb931584cf1693bcb7e71dc1 100644 (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;