From 99cf4755e4262dd4ec55979986a289bf6abc7c6d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 5 Aug 2018 12:23:55 +0200 Subject: Fix potential use of uninitialized memory --- chilbert/FixBitVec.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chilbert') diff --git a/chilbert/FixBitVec.hpp b/chilbert/FixBitVec.hpp index ff31f1b..06f3455 100644 --- a/chilbert/FixBitVec.hpp +++ b/chilbert/FixBitVec.hpp @@ -48,16 +48,16 @@ public: CFixBitVec( int iBits = FBV_BITS ) + : m_uiRack{} { - return; } // Copy constructor. CFixBitVec( const CFixBitVec &cFBV ) + : m_uiRack{cFBV.m_uiRack} { - m_uiRack = cFBV.m_uiRack; } // Returns the current size in bits. -- cgit v1.2.1