username(): get rid of unneeded uid variable
Aaron Marcher info@nulltime.net
Thu, 20 Apr 2017 22:18:24 +0200
1 files changed,
1 insertions(+),
2 deletions(-)
jump to
M
slstatus.c
→
slstatus.c
@@ -643,8 +643,7 @@
static char * username(void) { - uid_t uid = geteuid(); - struct passwd *pw = getpwuid(uid); + struct passwd *pw = getpwuid(geteuid()); if (pw == NULL) { warn("Failed to get username");