Skip to content
Snippets Groups Projects
Commit e58eca40 authored by Moe Jette's avatar Moe Jette
Browse files

Remove extraneous trailing "," on SLURM_CPU_BIND env var.

parent 7234f214
No related branches found
No related tags found
No related merge requests found
...@@ -447,10 +447,11 @@ int setup_env(env_t *env) ...@@ -447,10 +447,11 @@ int setup_env(env_t *env)
str_bind = xstrdup (""); str_bind = xstrdup ("");
xstrcat(str_bind, str_verbose); xstrcat(str_bind, str_verbose);
if (str_bind[0]) { /* add ',' if str_verbose */ if (str_bind[0] && str_bind_type && str_bind_type[0])
xstrcatchar(str_bind, ','); xstrcatchar(str_bind, ',');
}
xstrcat(str_bind, str_bind_type); xstrcat(str_bind, str_bind_type);
if (str_bind[0] && str_bind_list && str_bind_list[0])
xstrcatchar(str_bind, ',');
xstrcat(str_bind, str_bind_list); xstrcat(str_bind, str_bind_list);
if (setenvf(&env->env, "SLURM_CPU_BIND", str_bind)) { if (setenvf(&env->env, "SLURM_CPU_BIND", str_bind)) {
......
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