summaryrefslogtreecommitdiff
path: root/src/mongo/util/allocator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/allocator.cpp')
-rw-r--r--src/mongo/util/allocator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/util/allocator.cpp b/src/mongo/util/allocator.cpp
index 358689a0655..66e87518b59 100644
--- a/src/mongo/util/allocator.cpp
+++ b/src/mongo/util/allocator.cpp
@@ -37,7 +37,7 @@ namespace mongo {
void* mongoMalloc(size_t size) {
void* x = std::malloc(size);
- if (x == NULL) {
+ if (x == nullptr) {
reportOutOfMemoryErrorAndExit();
}
return x;
@@ -45,7 +45,7 @@ void* mongoMalloc(size_t size) {
void* mongoRealloc(void* ptr, size_t size) {
void* x = std::realloc(ptr, size);
- if (x == NULL) {
+ if (x == nullptr) {
reportOutOfMemoryErrorAndExit();
}
return x;