Skip to content
Snippets Groups Projects
Commit d1ea0b49 authored by Tim Wickberg's avatar Tim Wickberg
Browse files

Prevent 'sacctmgr shutdown' from always returning 1.

Add in missing brackets. Caught by GCC 6.1 -Wall.
parent 631557ce
No related branches found
No related tags found
No related merge requests found
......@@ -519,10 +519,11 @@ _process_command (int argc, char *argv[])
}
rc = slurmdb_shutdown(db_conn);
if (rc != SLURM_SUCCESS)
if (rc != SLURM_SUCCESS) {
fprintf(stderr, " Problem shutting down server: %s\n",
slurm_strerror(rc));
exit_code = 1;
}
} else if (strncasecmp (argv[0], "version", MAX(command_len, 4)) == 0) {
if (argc > 1) {
exit_code = 1;
......
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