From 51cfeb8c7d809654e297c9899ac6019db16a8f9e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 19 Mar 2018 15:50:17 -0400 Subject: [PATCH] JitBase: Ensure JitOptions and JitState instances are consistently initialized Ensures that upon construction of a JitBase instance, that all underlying members within the option and state structs are guaranteed to be initialized. This prevents potentially using a member uninitialized in some form. --- Source/Core/Core/PowerPC/JitCommon/JitBase.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/PowerPC/JitCommon/JitBase.h b/Source/Core/Core/PowerPC/JitCommon/JitBase.h index d0cbf16879..0579e0a809 100644 --- a/Source/Core/Core/PowerPC/JitCommon/JitBase.h +++ b/Source/Core/Core/PowerPC/JitCommon/JitBase.h @@ -110,8 +110,8 @@ protected: public: // This should probably be removed from public: - JitOptions jo; - JitState js; + JitOptions jo{}; + JitState js{}; JitBase(); ~JitBase() override;