Moving stuff around

This commit is contained in:
aristocratos
2021-08-23 22:52:52 +02:00
parent 03f64c22de
commit 214d8962e0
6 changed files with 34 additions and 52 deletions

View File

@@ -353,7 +353,7 @@ namespace Tools {
string username() {
auto user = getenv("LOGNAME");
if (user == NULL or strcmp(user, "")) user = getenv("USER");
if (user == NULL or strlen(user) == 0) user = getenv("USER");
return (user != NULL ? user : "");
}