diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp index 4d2abcbe9b..e06151715d 100644 --- a/src/core/hle/kernel/process.cpp +++ b/src/core/hle/kernel/process.cpp @@ -427,7 +427,7 @@ Result Process::LinearFree(VAddr target, u32 size) { ResultVal Process::AllocateThreadLocalStorage() { std::size_t tls_page; - std::size_t tls_slot; + std::size_t tls_slot = 0; bool needs_allocation = true; // Iterate over all the allocated pages, and try to find one where not all slots are used. diff --git a/src/core/hle/service/news/news.cpp b/src/core/hle/service/news/news.cpp index 4eb051061a..c7c7eace02 100644 --- a/src/core/hle/service/news/news.cpp +++ b/src/core/hle/service/news/news.cpp @@ -58,7 +58,7 @@ void Module::Interface::AddNotificationImpl(Kernel::HLERequestContext& ctx, bool const u32 message_size = rp.Pop(); const u32 image_size = rp.Pop(); - u32 process_id; + u32 process_id = 0; if (!news_s) { process_id = rp.PopPID(); LOG_INFO(Service_NEWS,