summaryrefslogtreecommitdiff
path: root/daemon/gdm-wayland-session.c
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2016-08-25 14:40:58 -0400
committerRay Strode <rstrode@redhat.com>2017-02-21 16:04:16 -0500
commit5658fda3958c76a0cbbba2c8fdd0eec929f5aea7 (patch)
tree8bb7115ecc6d2e681354ac3140702a8c09d0cf82 /daemon/gdm-wayland-session.c
parentbdd5f360c0ede5e9fc55d5e25bc0616715dbd364 (diff)
downloadgdm-5658fda3958c76a0cbbba2c8fdd0eec929f5aea7.tar.gz
gdm-{wayland,x}-session: fix empty string check on import environment
We were doing an empty string check incorrectly. This commit fixes that.
Diffstat (limited to 'daemon/gdm-wayland-session.c')
-rw-r--r--daemon/gdm-wayland-session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/gdm-wayland-session.c b/daemon/gdm-wayland-session.c
index 8b0e56aa..efdb34e8 100644
--- a/daemon/gdm-wayland-session.c
+++ b/daemon/gdm-wayland-session.c
@@ -301,7 +301,7 @@ spawn_session (State *state,
for (i = 0; state->environment[i] != NULL; i++) {
g_auto(GStrv) environment_entry = NULL;
- if (state->environment[i] == '\0') {
+ if (state->environment[i][0] == '\0') {
continue;
}