aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc/locking_allocator
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc/locking_allocator')
-rw-r--r--src/alloc/locking_allocator/locking_allocator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alloc/locking_allocator/locking_allocator.cpp b/src/alloc/locking_allocator/locking_allocator.cpp
index 1595c526f..6cdfc3e8e 100644
--- a/src/alloc/locking_allocator/locking_allocator.cpp
+++ b/src/alloc/locking_allocator/locking_allocator.cpp
@@ -70,7 +70,7 @@ size_t padding_for_alignment(size_t offset, size_t desired_alignment)
void* mlock_allocator::allocate(size_t num_elems, size_t elem_size)
{
if(!m_pool)
- return;
+ return nullptr;
const size_t n = num_elems * elem_size;
const size_t alignment = elem_size;