summaryrefslogtreecommitdiff
path: root/daemon/gdm-x-session.c
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2015-07-22 09:19:02 -0400
committerRay Strode <rstrode@redhat.com>2015-07-22 09:20:34 -0400
commit752043cc3670928c90211fcfc9df4b8092e1c3d2 (patch)
tree0c0cfd02e732dc55c94f1b48abfe517e6ce8c731 /daemon/gdm-x-session.c
parent87fc588c63ddde50268c023e2a9f4707003ed173 (diff)
downloadgdm-752043cc3670928c90211fcfc9df4b8092e1c3d2.tar.gz
gdm-x-session: drop spurious g_getenv call
We call g_getenv("XDG_VTNR") twice in a row, when the result the first time around is stored in the vt variable. This commit just uses the vt variable again, and avoids the second call. https://bugzilla.gnome.org/show_bug.cgi?id=752724
Diffstat (limited to 'daemon/gdm-x-session.c')
-rw-r--r--daemon/gdm-x-session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/gdm-x-session.c b/daemon/gdm-x-session.c
index f8eeb45c..58646fa3 100644
--- a/daemon/gdm-x-session.c
+++ b/daemon/gdm-x-session.c
@@ -516,7 +516,7 @@ spawn_session (State *state,
vt = g_getenv ("XDG_VTNR");
if (vt != NULL) {
- g_subprocess_launcher_setenv (launcher, "WINDOWPATH", g_getenv ("XDG_VTNR"), TRUE);
+ g_subprocess_launcher_setenv (launcher, "WINDOWPATH", vt, TRUE);
}
if (run_script) {