1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 16:07:45 +00:00

su+passwd: Don't copy Core::Account unnecessarily

This commit is contained in:
Andreas Kling 2021-01-09 17:54:09 +01:00
parent 2ba9e6c866
commit 9766f61f7b
2 changed files with 2 additions and 2 deletions

View file

@ -68,7 +68,7 @@ int main(int argc, char** argv)
return 1;
}
Core::Account account = account_or_error.value();
const auto& account = account_or_error.value();
if (getuid() != 0 && account.has_password()) {
auto password = Core::get_password();