We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fd354c commit 6c9a258Copy full SHA for 6c9a258
1 file changed
src/exppp/pretty_type.c
@@ -151,7 +151,7 @@ void TYPE_body_out( Type t, int level ) {
151
while( 0 != ( expr = ( Expression )DICTdo( &de ) ) ) {
152
count++;
153
}
154
- names = ( char ** )sc_malloc( count * sizeof( char * ) );
+ names = ( char ** )sc_calloc( count, sizeof( char * ) );
155
DICTdo_type_init( t->symbol_table, &de, OBJ_EXPRESSION );
156
157
names[expr->u.integer - 1] = expr->symbol.name;
0 commit comments