From cfd02bff539a4baea355bec6bca2d912558c1c0b Mon Sep 17 00:00:00 2001 From: Akash Date: Fri, 23 Oct 2015 20:30:47 +0530 Subject: [PATCH] Utilities: Initialize all class members CID 147010 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)4. uninit_member: Non-static class member Enabled is not initialized in this constructor nor in any functions that it calls. --- common/include/Utilities/TraceLog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/include/Utilities/TraceLog.h b/common/include/Utilities/TraceLog.h index 0426b02b13..5884100cf8 100644 --- a/common/include/Utilities/TraceLog.h +++ b/common/include/Utilities/TraceLog.h @@ -77,7 +77,7 @@ public: bool Enabled; protected: - BaseTraceLogSource() {} + BaseTraceLogSource() : m_Descriptor(NULL), Enabled(false) {} public: TraceLog_ImplementBaseAPI(BaseTraceLogSource)