commit | 32bc0fcf69dfccb3726fe572833a38b01179580e | [log] [tgz] |
---|---|---|
author | Yi Kong <yikong@google.com> | Thu Aug 02 17:31:13 2018 -0700 |
committer | Yi Kong <yikong@google.com> | Thu Aug 02 18:09:44 2018 -0700 |
tree | abca656f500087493e0997d5cf38cbcc9ec98eb8 | |
parent | 65f82092a17518080178ff7004cc6db362ebfbcd [diff] [blame] |
Modernize codebase by replacing NULL with nullptr Fixes -Wzero-as-null-pointer-constant warning. Test: m Bug: 68236239 Change-Id: I5b4123bc6709641315120a191e36cc57541349b2
diff --git a/libc/bionic/clearenv.cpp b/libc/bionic/clearenv.cpp index c70cc3e..01c9c39 100644 --- a/libc/bionic/clearenv.cpp +++ b/libc/bionic/clearenv.cpp
@@ -31,9 +31,9 @@ int clearenv() { char** e = environ; - if (e != NULL) { + if (e != nullptr) { for (; *e; ++e) { - *e = NULL; + *e = nullptr; } } return 0;