From b0923bd4722eaaf987109eaf1fd638a6988da745 Mon Sep 17 00:00:00 2001 From: "Adrian.Conlon" Date: Thu, 7 Sep 2017 13:45:16 +0100 Subject: [PATCH] (Coverity) Initialise Bus variables in constructor. Signed-off-by: Adrian.Conlon --- inc/Bus.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/inc/Bus.h b/inc/Bus.h index bca7255..53bd81d 100644 --- a/inc/Bus.h +++ b/inc/Bus.h @@ -9,7 +9,10 @@ namespace EightBit { class Bus { public: - Bus() {} + Bus() + : m_temporary(0xff), m_data(nullptr) { + m_address.word = 0xffff; + } Signal WrittenByte; Signal ReadByte;