Commit 752043cc authored by Ray Strode's avatar Ray Strode

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
parent 87fc588c
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment