aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 */