mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
(lock_build_name): fix coding style.
This commit is contained in:
parent
ee5bf223fb
commit
1e4d27e437
10
lib/lock.c
10
lib/lock.c
@ -95,15 +95,15 @@ lock_build_name (void)
|
||||
struct passwd *pw;
|
||||
|
||||
pw = getpwuid (getuid ());
|
||||
if (pw)
|
||||
if (pw != NULL)
|
||||
user = pw->pw_name;
|
||||
if (!user)
|
||||
if (user == NULL)
|
||||
user = getenv ("USER");
|
||||
if (!user)
|
||||
if (user == NULL)
|
||||
user = getenv ("USERNAME");
|
||||
if (!user)
|
||||
if (user == NULL)
|
||||
user = getenv ("LOGNAME");
|
||||
if (!user)
|
||||
if (user == NULL)
|
||||
user = "";
|
||||
|
||||
/** \todo Use FQDN, no clean interface, so requires lot of code */
|
||||
|
Loading…
Reference in New Issue
Block a user