summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2018-08-20 04:21:50 -0400
committerGravatar Lioncash2018-08-20 04:23:05 -0400
commitffd60ee4768e7baba187bf9c3462e6db9ec01b32 (patch)
treec287393ca3e0e7a0aa66e16a4561714ba6f8eee7 /src
parentMerge pull request #1089 from Subv/neg_bits (diff)
downloadyuzu-ffd60ee4768e7baba187bf9c3462e6db9ec01b32.tar.gz
yuzu-ffd60ee4768e7baba187bf9c3462e6db9ec01b32.tar.xz
yuzu-ffd60ee4768e7baba187bf9c3462e6db9ec01b32.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/game_list.cpp4
1 files 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() {
438 438
439 std::vector<u8> icon; 439 std::vector<u8> icon;
440 std::string name; 440 std::string name;
441 u64 program_id; 441 u64 program_id = 0;
442 loader->ReadProgramId(program_id); 442 loader->ReadProgramId(program_id);
443 443
444 const auto& control = 444 const auto& control =
@@ -509,7 +509,7 @@ void GameListWorker::AddFstEntriesToGameList(const std::string& dir_path, unsign
509 std::vector<u8> icon; 509 std::vector<u8> icon;
510 const auto res1 = loader->ReadIcon(icon); 510 const auto res1 = loader->ReadIcon(icon);
511 511
512 u64 program_id; 512 u64 program_id = 0;
513 const auto res2 = loader->ReadProgramId(program_id); 513 const auto res2 = loader->ReadProgramId(program_id);
514 514
515 std::string name = " "; 515 std::string name = " ";