From ffd60ee4768e7baba187bf9c3462e6db9ec01b32 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 20 Aug 2018 04:21:50 -0400 Subject: [PATCH] game_list: Avoid uninitialized variables when retrieving program ID Avoids potentially leaving this variable uninitialized based off the loader failing to retrieve the ID value. --- src/yuzu/game_list.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/yuzu/game_list.cpp b/src/yuzu/game_list.cpp index f867118d9..bc4b93033 100644 --- a/src/yuzu/game_list.cpp +++ b/src/yuzu/game_list.cpp @@ -438,7 +438,7 @@ void GameListWorker::AddInstalledTitlesToGameList() { std::vector icon; std::string name; - u64 program_id; + u64 program_id = 0; loader->ReadProgramId(program_id); const auto& control = @@ -509,7 +509,7 @@ void GameListWorker::AddFstEntriesToGameList(const std::string& dir_path, unsign std::vector icon; const auto res1 = loader->ReadIcon(icon); - u64 program_id; + u64 program_id = 0; const auto res2 = loader->ReadProgramId(program_id); std::string name = " ";