Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 2199757

Browse files
hkielOpenModelica-Hudson
authored andcommitted
remove unnecessary and wrong cast
Belonging to [master]: - #2264
1 parent ead2219 commit 2199757

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SimulationRuntime/c/simulation/solver/perform_simulation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ static void fmtInit(DATA* data, MEASURE_TIME* mt)
176176
{
177177
const char* fullFileName;
178178
if (omc_flag[FLAG_OUTPUT_PATH]) { /* read the output path from the command line (if any) */
179-
if (0 > GC_asprintf((char**)&fullFileName, "%s/%s", omc_flagValue[FLAG_OUTPUT_PATH], data->modelData->modelFilePrefix)) {
179+
if (0 > GC_asprintf(&fullFileName, "%s/%s", omc_flagValue[FLAG_OUTPUT_PATH], data->modelData->modelFilePrefix)) {
180180
throwStreamPrint(NULL, "perform_simulation.c: Error: can not allocate memory.");
181181
}
182182
} else {

0 commit comments

Comments
 (0)