From 11c80118ed54f02b5774fb4d64b1ff8ee4b87134 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 12 Jan 2022 17:13:29 +0100 Subject: SLURM: Fix a silly mistake counting the environment entries --- src/gui_backend_slurm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui_backend_slurm.c') diff --git a/src/gui_backend_slurm.c b/src/gui_backend_slurm.c index ee9bbb94..e02120a3 100644 --- a/src/gui_backend_slurm.c +++ b/src/gui_backend_slurm.c @@ -255,7 +255,7 @@ static char **create_env(int *psize) env_list = g_get_environ(); n_env = 0; - while ( env_list[n_env] == NULL ) n_env++; + while ( env_list[n_env] != NULL ) n_env++; /* Can't mix g_malloc/g_free with normal malloc/free, so we * must do a deep copy */ -- cgit v1.2.3