Commit bea18a0e authored by Sylvain Henry's avatar Sylvain Henry Committed by Ben Gamari

Fix GCC 7 warning in the RTS

Test Plan: validate

Reviewers: austin, bgamari, erikd, simonmar

Reviewed By: bgamari, simonmar

Subscribers: rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D3648
parent 23f47b15
......@@ -1559,6 +1559,10 @@ openStatsFile (char *filename, // filename, or NULL
if (*filename != '\0') { /* stats file specified */
f = fopen(filename,"w");
} else {
if (filename_fmt == NULL) {
errorBelch("Invalid stats filename format (NULL)\n");
return -1;
}
/* default <program>.<ext> */
char stats_filename[STATS_FILENAME_MAXLEN];
sprintf(stats_filename, filename_fmt, prog_name);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment