Initialize variables to silence garbage return warning from scan-build.
This commit is contained in:
parent
7d05ebbc9b
commit
9e340b1c81
|
@ -22,7 +22,7 @@ namespace DiscIO
|
|||
|
||||
CBannerLoaderWii::CBannerLoaderWii(DiscIO::IVolume *pVolume)
|
||||
{
|
||||
u64 TitleID;
|
||||
u64 TitleID = 0;
|
||||
pVolume->GetTitleID((u8*)&TitleID);
|
||||
TitleID = Common::swap64(TitleID);
|
||||
|
||||
|
|
|
@ -157,7 +157,7 @@ u64 CVolumeGC::GetRawSize() const
|
|||
|
||||
bool CVolumeGC::IsDiscTwo() const
|
||||
{
|
||||
bool discTwo;
|
||||
bool discTwo = false;
|
||||
Read(6,1, (u8*) &discTwo);
|
||||
return discTwo;
|
||||
}
|
||||
|
|
|
@ -288,7 +288,7 @@ const std::string GameListItem::GetWiiFSPath() const
|
|||
|
||||
if (DiscIO::IsVolumeWiiDisc(iso) || DiscIO::IsVolumeWadFile(iso))
|
||||
{
|
||||
u64 title;
|
||||
u64 title = 0;
|
||||
|
||||
iso->GetTitleID((u8*)&title);
|
||||
title = Common::swap64(title);
|
||||
|
|
Loading…
Reference in New Issue