Skip to content

Commit 6d934ef

Browse files
committed
Replace calloc with regular c array
1 parent f2af036 commit 6d934ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mpi_test_suite.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ int main (int argc, char * argv[])
147147

148148
tst_output_init (DEBUG_LOG, TST_OUTPUT_RANK_SELF, TST_REPORT_MAX, TST_OUTPUT_TYPE_LOGFILE, "tst.log");
149149

150-
char *info_str = (char *) calloc(MAX_INFO_STRING_LENGTH, sizeof(char));
150+
char info_str[MAX_INFO_STRING_LENGTH];
151151
get_compiler_info(&info_str);
152152
tst_output_printf(DEBUG_LOG, TST_REPORT_RUN, "Compiler used was %s\n", info_str);
153153
get_mpi_info(&info_str);

0 commit comments

Comments
 (0)