From 9f1b0dc8cbd92d72afba8d5a4fd6a382b0e29343 Mon Sep 17 00:00:00 2001 From: Danny Auble <da@llnl.gov> Date: Thu, 10 Nov 2005 00:01:16 +0000 Subject: [PATCH] hostfile can = NULL with no error message --- src/api/allocate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/allocate.c b/src/api/allocate.c index b11b911e29c..2b69a45db9b 100644 --- a/src/api/allocate.c +++ b/src/api/allocate.c @@ -306,7 +306,7 @@ static int _nodelist_from_hostfile(job_step_create_request_msg_t *req) char *nodelist = NULL; if (hostfile = (char *)getenv("MP_HOSTFILE")) { - if(strlen(hostfile)<1) + if(strlen(hostfile)<1 || !strcmp(hostfile,"NULL")) goto no_hostfile; if((hostfilep = fopen(hostfile, "r")) == NULL) { error("slurm_allocate_resources " -- GitLab