diff options
author | Thomas White <taw@physics.org> | 2021-09-07 16:31:48 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-09-07 16:31:48 +0200 |
commit | 3f109ddddb323448854e70d914a7649148e0dcf6 (patch) | |
tree | 1961ced9b0a5fdad96c8711693076550fcd6daea | |
parent | a37c909fa4039b8c45cca2ff10ed8fdaac107a01 (diff) |
GUI SLURM backend: Bail out if environment can't be allocated
-rw-r--r-- | src/gui_backend_slurm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui_backend_slurm.c b/src/gui_backend_slurm.c index 1526bb3b..1c726591 100644 --- a/src/gui_backend_slurm.c +++ b/src/gui_backend_slurm.c @@ -486,6 +486,7 @@ static struct slurm_job *start_slurm_job(enum gui_job_type type, cwd_gfile = g_file_new_for_path("."); env = create_env(&n_env, NULL); + if ( env == NULL ) return NULL; slurm_init_job_desc_msg(&job_desc_msg); job_desc_msg.user_id = getuid(); |