Skip to content

Commit

Permalink
In deleteUnzippedFiles(), have getTmpPath() return a non-const so we …
Browse files Browse the repository at this point in the history
…can pass it to free().
  • Loading branch information
cxbrooks committed Dec 24, 2014
1 parent 4c7c5dd commit 2db09ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fmu20/src/shared/sim_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ void loadFMU(const char* fmuFileName) {
}

void deleteUnzippedFiles() {
const char *fmuTempPath = getTmpPath();
char *fmuTempPath = getTmpPath();
char *cmd = (char *)calloc(15 + strlen(fmuTempPath), sizeof(char));
#if WINDOWS
sprintf(cmd, "rmdir /S /Q %s", fmuTempPath);
Expand Down

0 comments on commit 2db09ab

Please sign in to comment.