diff --git a/orte/mca/plm/rsh/plm_rsh_module.c b/orte/mca/plm/rsh/plm_rsh_module.c index 3887bfbd1d..a6f3366b3b 100644 --- a/orte/mca/plm/rsh/plm_rsh_module.c +++ b/orte/mca/plm/rsh/plm_rsh_module.c @@ -531,7 +531,7 @@ static int setup_launch(int *argcptr, char ***argvptr, * with the prefix directory */ char *opal_prefix = getenv("OPAL_PREFIX"); - if (remote_sh) { + if (*remote_sh) { /* if there is nothing preceding orted, then we can just * assemble the cmd with the orted_cmd at the end. Otherwise, * we have to insert the orted_prefix in the right place