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

hostfile can = NULL with no error message

parent ab0eeba2
No related branches found
No related tags found
No related merge requests found
...@@ -306,7 +306,7 @@ static int _nodelist_from_hostfile(job_step_create_request_msg_t *req) ...@@ -306,7 +306,7 @@ static int _nodelist_from_hostfile(job_step_create_request_msg_t *req)
char *nodelist = NULL; char *nodelist = NULL;
if (hostfile = (char *)getenv("MP_HOSTFILE")) { if (hostfile = (char *)getenv("MP_HOSTFILE")) {
if(strlen(hostfile)<1) if(strlen(hostfile)<1 || !strcmp(hostfile,"NULL"))
goto no_hostfile; goto no_hostfile;
if((hostfilep = fopen(hostfile, "r")) == NULL) { if((hostfilep = fopen(hostfile, "r")) == NULL) {
error("slurm_allocate_resources " error("slurm_allocate_resources "
......
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