[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:

committed by
Max Kellermann

parent
d2115e908a
commit
7fe49cf24d
@@ -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
|
||||
|
Reference in New Issue
Block a user