Skip to content
Snippets Groups Projects
Commit 2268057f authored by Morris Jette's avatar Morris Jette
Browse files

Coverity error fix

FILE descriptor used after close
parent 23b3efc1
No related branches found
No related tags found
No related merge requests found
......@@ -1426,7 +1426,7 @@ extern int filetxt_jobacct_process_archive(slurmdb_archive_cond_t *arch_cond)
}
/* reopen new logfile in append mode, since slurmctld may write it */
if (freopen(filein, "a", new_logfile) == NULL) {
if ((new_logfile = freopen(filein, "a", new_logfile)) == NULL) {
perror("reopening new logfile");
goto finished2;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment