Browse Source
username(): get rid of unneeded uid variable
master
Aaron Marcher
9 years ago
No known key found for this signature in database
GPG Key ID: 74B048E5C2474F9A
1 changed files with
1 additions and
2 deletions
-
slstatus.c
|
|
|
@ -643,8 +643,7 @@ uptime(void) |
|
|
|
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"); |
|
|
|
|