aboutsummaryrefslogtreecommitdiff
path: root/src/support
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-07-30 12:37:09 +0200
committerfanquake <fanquake@gmail.com>2022-04-26 10:41:45 +0100
commite53274868e0ec35156349826b0995bc444287690 (patch)
tree58ae5dc74e1b6621d7698c046559f932a759d349 /src/support
parentf436bfd126adaa64daba2e78016eb707e37eabce (diff)
downloadbitcoin-e53274868e0ec35156349826b0995bc444287690.tar.xz
Don't use zero as null pointer constant (-Wzero-as-null-pointer-constant)
Diffstat (limited to 'src/support')
-rw-r--r--src/support/allocators/secure.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/support/allocators/secure.h b/src/support/allocators/secure.h
index a9aa928082..c6bd685189 100644
--- a/src/support/allocators/secure.h
+++ b/src/support/allocators/secure.h
@@ -37,7 +37,7 @@ struct secure_allocator : public std::allocator<T> {
typedef secure_allocator<_Other> other;
};
- T* allocate(std::size_t n, const void* hint = 0)
+ T* allocate(std::size_t n, const void* hint = nullptr)
{
T* allocation = static_cast<T*>(LockedPoolManager::Instance().alloc(sizeof(T) * n));
if (!allocation) {