From 5ba25330d087ad9409e03f316faf51b230140b09 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 27 May 2019 10:57:35 +1000 Subject: [PATCH] pool: don't forget to initialise the store pointer in move construction --- pool.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pool.hpp b/pool.hpp index f1f46a80..86b3820b 100644 --- a/pool.hpp +++ b/pool.hpp @@ -52,6 +52,7 @@ namespace cruft { //--------------------------------------------------------------------- pool (pool &&rhs) noexcept : m_available (0) + , m_store (nullptr) , m_capacity (0) { std::swap (m_available, rhs.m_available);