aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2022-01-12 17:13:29 +0100
committerThomas White <taw@physics.org>2022-01-12 17:13:29 +0100
commit11c80118ed54f02b5774fb4d64b1ff8ee4b87134 (patch)
tree25cd843ce50823b7c25b51e6c906e5d3bd7f2ced
parentc2eb263f9167cd454498cca132e87d54f23e0333 (diff)
SLURM: Fix a silly mistake counting the environment entries
-rw-r--r--src/gui_backend_slurm.c2
1 files changed, 1 insertions, 1 deletions
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 */