[clang-tidy] use default member init

Found with modernize-use-default-member-init

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2020-03-17 20:52:46 -07:00
committed by Max Kellermann
parent d2115e908a
commit 7fe49cf24d
7 changed files with 13 additions and 16 deletions

View File

@@ -56,9 +56,9 @@ class PasswdEntry
passwd pw;
#endif
passwd *result;
passwd *result{nullptr};
public:
PasswdEntry() : result(nullptr) { }
PasswdEntry() = default;
bool ReadByName(const char *name) {
#ifdef HAVE_GETPWNAM_R