aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/accounts/passwd_accounts_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/accounts/passwd_accounts_handler.cc')
-rw-r--r--paludis/repositories/accounts/passwd_accounts_handler.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/repositories/accounts/passwd_accounts_handler.cc b/paludis/repositories/accounts/passwd_accounts_handler.cc
index 15195adc7..f76d5e159 100644
--- a/paludis/repositories/accounts/passwd_accounts_handler.cc
+++ b/paludis/repositories/accounts/passwd_accounts_handler.cc
@@ -68,7 +68,7 @@ PasswdAccountsHandler::merge_user(const MergeParams & params)
username = k->parse_value();
- if (0 != getpwnam(username.c_str()))
+ if (nullptr != getpwnam(username.c_str()))
throw ActionFailedError("User '" + username + "' already exists");
} while (false);
@@ -225,7 +225,7 @@ PasswdAccountsHandler::merge_group(const MergeParams & params)
groupname = k->parse_value();
- if (0 != getgrnam(groupname.c_str()))
+ if (nullptr != getgrnam(groupname.c_str()))
throw ActionFailedError("Group '" + groupname + "' already exists");
} while (false);