Skip to content

Commit d36c0dd

Browse files
starseekercshorler
authored andcommitted
Add initializers for TYPEis entities
1 parent 8ed3d2f commit d36c0dd

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/exp2cxx/selects.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,11 @@ void TYPEselect_lib_print_part_one( const Type type, FILE * f,
741741
if( ( TYPEis_entity( t ) ) || ( !utype_member( dups, t, 1 ) ) ) {
742742
if( isAggregateType( t ) && ( t->u.type->body->base ) ) {
743743
fprintf( f, " _%s = new %s;\n", SEL_ITEMget_dmname( t ), TYPEget_utype( t ) );
744-
}
744+
} else if (TYPEis_entity(t)) {
745+
// Per TYPEget_utype, any TYPEis_entity is an
746+
// SDAI_Application_instance_ptr - initialize it here.
747+
fprintf(f, " _%s = NULL;\n", SEL_ITEMget_dmname(t));
748+
}
745749
}
746750
} LISTod
747751
fprintf( f, " nullify();\n" );

0 commit comments

Comments
 (0)