[gdm/gnome-3-22] gdm-{wayland, x}-session: fix empty string check on import environment
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/gnome-3-22] gdm-{wayland, x}-session: fix empty string check on import environment
- Date: Wed, 1 Mar 2017 21:27:37 +0000 (UTC)
commit e7c5c8d3a0ba4a6c74fbf1ca4a5509a5e81ec762
Author: Ray Strode <rstrode redhat com>
Date: Thu Aug 25 14:40:58 2016 -0400
gdm-{wayland,x}-session: fix empty string check on import environment
We were doing an empty string check incorrectly.
This commit fixes that.
daemon/gdm-wayland-session.c | 2 +-
daemon/gdm-x-session.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gdm-wayland-session.c b/daemon/gdm-wayland-session.c
index 8b0e56a..efdb34e 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;
}
diff --git a/daemon/gdm-x-session.c b/daemon/gdm-x-session.c
index d835b34..b919e6e 100644
--- a/daemon/gdm-x-session.c
+++ b/daemon/gdm-x-session.c
@@ -619,7 +619,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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]