summaryrefslogtreecommitdiffstats
path: root/remoting/host/username.cc
diff options
context:
space:
mode:
authorsergeyu <sergeyu@chromium.org>2015-01-09 11:33:24 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-09 19:34:12 +0000
commitc5f104b31e1a640e4adaeaac7fca30c72eb04138 (patch)
treef1de6d1828d8eaef25a9aa4e07a4a4d46764f045 /remoting/host/username.cc
parenta261cb0d164c411e916fb62f4c560ce5acb260f3 (diff)
downloadchromium_src-c5f104b31e1a640e4adaeaac7fca30c72eb04138.zip
chromium_src-c5f104b31e1a640e4adaeaac7fca30c72eb04138.tar.gz
chromium_src-c5f104b31e1a640e4adaeaac7fca30c72eb04138.tar.bz2
replace NULL->nullptr in src/remoting.
Review URL: https://codereview.chromium.org/810133003 Cr-Commit-Position: refs/heads/master@{#310816}
Diffstat (limited to 'remoting/host/username.cc')
-rw-r--r--remoting/host/username.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/remoting/host/username.cc b/remoting/host/username.cc
index e737425..cf27419 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)