From e23110bd9fce557ee9ad8542866bc552eda8713f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 5 Jun 2019 15:08:01 -0400 Subject: kernel/process: Default initialize all member variables Ensures a Process instance is always created with a deterministic initial state. --- src/core/hle/kernel/process.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h index 39b098e9b..83ea02bee 100644 --- a/src/core/hle/kernel/process.h +++ b/src/core/hle/kernel/process.h @@ -290,7 +290,7 @@ private: u64 code_memory_size = 0; /// Current status of the process - ProcessStatus status; + ProcessStatus status{}; /// The ID of this process u64 process_id = 0; @@ -339,7 +339,7 @@ private: Mutex mutex; /// Random values for svcGetInfo RandomEntropy - std::array random_entropy; + std::array random_entropy{}; /// List of threads that are running with this process as their owner. std::list thread_list; -- cgit v1.2.3