summaryrefslogtreecommitdiff
path: root/src/mongo/util/decoration_container.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/decoration_container.h')
-rw-r--r--src/mongo/util/decoration_container.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/util/decoration_container.h b/src/mongo/util/decoration_container.h
index 4b2f7bf0619..67a76730a16 100644
--- a/src/mongo/util/decoration_container.h
+++ b/src/mongo/util/decoration_container.h
@@ -97,7 +97,7 @@ public:
explicit DecorationContainer(Decorable<DecoratedType>* const decorated,
const DecorationRegistry<DecoratedType>* const registry)
: _registry(registry),
- _decorationData(new unsigned char[registry->getDecorationBufferSizeBytes()]) {
+ _decorationData(new unsigned char[registry->getDecorationBufferSizeBytes()]{}) {
// Because the decorations live in the externally allocated storage buffer at
// `_decorationData`, there needs to be a way to get back from a known location within this
// buffer to the type which owns those decorations. We place a pointer to ourselves, a