After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 752724 - gdm-x-session: drop spurious g_getenv call
gdm-x-session: drop spurious g_getenv call
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2015-07-22 13:20 UTC by Ray Strode [halfline]
Modified: 2015-07-22 13:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gdm-x-session: drop spurious g_getenv call (3.19 KB, patch)
2015-07-22 13:20 UTC, Ray Strode [halfline]
committed Details | Review

Description Ray Strode [halfline] 2015-07-22 13:20:31 UTC
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.
Comment 1 Ray Strode [halfline] 2015-07-22 13:20:37 UTC
Created attachment 307907 [details] [review]
gdm-x-session: drop spurious g_getenv call
Comment 2 Ray Strode [halfline] 2015-07-22 13:20:51 UTC
Attachment 307907 [details] pushed as 752043c - gdm-x-session: drop spurious g_getenv call