Index: util/test/posix/close_multiple.cc |
diff --git a/util/test/posix/close_multiple.cc b/util/test/posix/close_multiple.cc |
index 86e768bf1693b25d085f2a83271f14799bc3f554..e2020a901af1478f9958c5d60c21464f9581b4b4 100644 |
--- a/util/test/posix/close_multiple.cc |
+++ b/util/test/posix/close_multiple.cc |
@@ -102,7 +102,7 @@ bool CloseMultipleNowOrOnExecUsingFDDir(int fd, int preserve_fd) { |
dirent entry; |
dirent* result; |
int rv; |
- while ((rv = readdir_r(dir, &entry, &result)) == 0 && result != NULL) { |
+ while ((rv = readdir_r(dir, &entry, &result)) == 0 && result != nullptr) { |
const char* entry_name = &(*result->d_name); |
if (strcmp(entry_name, ".") == 0 || strcmp(entry_name, "..") == 0) { |
continue; |