Skip to content

Commit

Permalink
Removed uninitialized warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodnorwell authored and Gamer64ytb committed Aug 18, 2024
1 parent dc332eb commit 0f8970e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/hle/kernel/process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ Result Process::LinearFree(VAddr target, u32 size) {

ResultVal<VAddr> 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.
Expand Down
2 changes: 1 addition & 1 deletion src/core/hle/service/news/news.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void Module::Interface::AddNotificationImpl(Kernel::HLERequestContext& ctx, bool
const u32 message_size = rp.Pop<u32>();
const u32 image_size = rp.Pop<u32>();

u32 process_id;
u32 process_id = 0;
if (!news_s) {
process_id = rp.PopPID();
LOG_INFO(Service_NEWS,
Expand Down

0 comments on commit 0f8970e

Please sign in to comment.