Index: remoting/host/username.cc |
diff --git a/remoting/host/username.cc b/remoting/host/username.cc |
index e737425c45582ac600caa6d0f166545d3d44de19..cf274193de061220f265b46c40cbddd821c9928b 100644 |
--- a/remoting/host/username.cc |
+++ b/remoting/host/username.cc |
@@ -24,7 +24,7 @@ std::string GetUsername() { |
std::vector<char> buf(buf_size); |
struct passwd passwd; |
- struct passwd* passwd_result = NULL; |
+ struct passwd* passwd_result = nullptr; |
getpwuid_r(getuid(), &passwd, &(buf[0]), buf_size, &passwd_result); |
return passwd_result ? passwd_result->pw_name : std::string(); |
#else // !defined(OS_POSIX) |