Use correct output dir for reports

Not really sure if it needs to generate reports on 'init' mode, but at least now
it will be in the correct directory.
This commit is contained in:
Daniel Hirt 2016-07-13 16:25:39 +00:00
parent a21c2f39cc
commit 365630b8db
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ main(int argc, char *argv[])
/* Generate the filename. */
snprintf(report_filename, EXACTNESS_PATH_MAX,
"%s/%s/errors.html",
exactness_config.dest_dir, CURRENT_SUBDIR);
exactness_config.dest_dir, mode_init ? ORIG_SUBDIR : CURRENT_SUBDIR);
report_file = fopen(report_filename, "w+");
if (report_file)
{