From 3064d0c3004935bc193f5845908efc262793257e Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Mon, 21 Sep 2015 18:00:48 +0200 Subject: [PATCH] common: init m_handled in the SrcType_PageFault constructor Coverity: CID 147021 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)i 2. uninit_member: Non-static class member m_handled is not initialized in this constructor nor in any functions that it calls. --- common/include/Utilities/PageFaultSource.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/include/Utilities/PageFaultSource.h b/common/include/Utilities/PageFaultSource.h index 899fcf0f6b..fc4e88ce4d 100644 --- a/common/include/Utilities/PageFaultSource.h +++ b/common/include/Utilities/PageFaultSource.h @@ -109,7 +109,7 @@ protected: bool m_handled; public: - SrcType_PageFault() {} + SrcType_PageFault() : m_handled(false) {} virtual ~SrcType_PageFault() throw() { } bool WasHandled() const { return m_handled; }