Skip to content
Snippets Groups Projects
Commit 84577ab3 authored by Danny Auble's avatar Danny Auble
Browse files

Fix issue if program_invocation_name isn't available on the system.

parent d97737a0
No related branches found
No related tags found
No related merge requests found
......@@ -312,7 +312,7 @@ _log_init(char *prog, log_options_t opt, log_facility_t fac, char *logfile )
}
/* Only take the first one here. In some situations it can change. */
if (!slurm_prog_name)
if (!slurm_prog_name && log->argv0 && (strlen(log->argv0) > 1))
slurm_prog_name = xstrdup(log->argv0);
if (!log->fpfx)
......
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