aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/gethostname_sysconf.cc
diff options
context:
space:
mode:
authorGravatar ncteisen <ncteisen@gmail.com>2018-01-03 21:26:23 -0800
committerGravatar ncteisen <ncteisen@gmail.com>2018-01-03 21:26:23 -0800
commit5219f3f4c13ce412312975ec5ce7d80b164a72eb (patch)
treec8c33c1c5ad2c0c2f2bfa87e99f5c5a2f7034fa6 /src/core/lib/iomgr/gethostname_sysconf.cc
parentd9c69e1963288ff6fafb930ce55ea612808931f0 (diff)
Missing s/NULL/nullptr
Diffstat (limited to 'src/core/lib/iomgr/gethostname_sysconf.cc')
-rw-r--r--src/core/lib/iomgr/gethostname_sysconf.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/gethostname_sysconf.cc b/src/core/lib/iomgr/gethostname_sysconf.cc
index e099fbd388..3d74e03338 100644
--- a/src/core/lib/iomgr/gethostname_sysconf.cc
+++ b/src/core/lib/iomgr/gethostname_sysconf.cc
@@ -30,7 +30,7 @@ char* grpc_gethostname() {
char* hostname = (char*)gpr_malloc(host_name_max);
if (gethostname(hostname, host_name_max) != 0) {
gpr_free(hostname);
- return NULL;
+ return nullptr;
}
return hostname;
}