mirror of https://github.com/PCSX2/pcsx2.git
pcsx2:cdvd/debug: various uninitialized data
Most of the time, code is correct. In doubt always init the value.
This commit is contained in:
parent
5e8f899620
commit
0bcaff4214
|
@ -90,7 +90,8 @@ void InputIsoFile::BeginRead2(uint lsn)
|
||||||
|
|
||||||
int InputIsoFile::FinishRead3(u8* dst, uint mode)
|
int InputIsoFile::FinishRead3(u8* dst, uint mode)
|
||||||
{
|
{
|
||||||
int _offset, length;
|
int _offset = 0;
|
||||||
|
int length = 0;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
if(m_current_lsn < 0)
|
if(m_current_lsn < 0)
|
||||||
|
|
|
@ -209,9 +209,10 @@ u32 IsoDirectory::GetFileSize( const wxString& filePath ) const
|
||||||
|
|
||||||
IsoFileDescriptor::IsoFileDescriptor()
|
IsoFileDescriptor::IsoFileDescriptor()
|
||||||
{
|
{
|
||||||
lba = 0;
|
lba = 0;
|
||||||
size = 0;
|
size = 0;
|
||||||
flags = 0;
|
flags = 0;
|
||||||
|
memset(&date, 0, sizeof(date));
|
||||||
}
|
}
|
||||||
|
|
||||||
IsoFileDescriptor::IsoFileDescriptor(const u8* data, int length)
|
IsoFileDescriptor::IsoFileDescriptor(const u8* data, int length)
|
||||||
|
|
|
@ -869,6 +869,9 @@ void disMemAccess( std::string& output, const char* name, int cop = 0)
|
||||||
case 2:
|
case 2:
|
||||||
rt = COP2_REG_FP[DECODE_FT];
|
rt = COP2_REG_FP[DECODE_FT];
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
rt = "???";
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* rs = GPR_REG[DECODE_RS];
|
const char* rs = GPR_REG[DECODE_RS];
|
||||||
|
|
|
@ -444,8 +444,10 @@ void DisassemblyFunction::generateBranchLines()
|
||||||
};
|
};
|
||||||
|
|
||||||
LaneInfo lanes[NUM_LANES];
|
LaneInfo lanes[NUM_LANES];
|
||||||
for (int i = 0; i < NUM_LANES; i++)
|
for (int i = 0; i < NUM_LANES; i++) {
|
||||||
lanes[i].used = false;
|
lanes[i].used = false;
|
||||||
|
lanes[i].end = 0;
|
||||||
|
}
|
||||||
|
|
||||||
u32 end = address+size;
|
u32 end = address+size;
|
||||||
|
|
||||||
|
|
|
@ -413,8 +413,8 @@ bool parsePostfixExpression(PostfixExpression& exp, IExpressionFunctions* funcs,
|
||||||
size_t num = 0;
|
size_t num = 0;
|
||||||
u64 opcode;
|
u64 opcode;
|
||||||
std::vector<u64> valueStack;
|
std::vector<u64> valueStack;
|
||||||
u64 arg[5];
|
u64 arg[5] = {0};
|
||||||
float fArg[5];
|
float fArg[5] = {0};
|
||||||
bool useFloat = false;
|
bool useFloat = false;
|
||||||
|
|
||||||
while (num < exp.size())
|
while (num < exp.size())
|
||||||
|
|
Loading…
Reference in New Issue