Revert to a default login in case of an EMPTY_WRAPPED_STRING.
This commit is contained in:
parent
d562bdf475
commit
055caebcf2
1 changed files with 1 additions and 1 deletions
|
@ -423,7 +423,7 @@ void set_wrap_login(bool wrap)
|
|||
std::string login()
|
||||
{
|
||||
const std::string res = preferences::get("login");
|
||||
if(res.empty()) {
|
||||
if(res.empty() || res == EMPTY_WRAPPED_STRING) {
|
||||
char* const login = getenv("USER");
|
||||
if(login != NULL) {
|
||||
return login;
|
||||
|
|
Loading…
Add table
Reference in a new issue