mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
Merge pull request #12403 from lioncash/uninit
PPCDebugInterface: Silence trivial -Wmaybe-uninitialized warning
This commit is contained in:
@ -467,7 +467,7 @@ PPCDebugInterface::GetMemoryAddressFromInstruction(const std::string& instructio
|
|||||||
|
|
||||||
if (is_reg == offset_match[0])
|
if (is_reg == offset_match[0])
|
||||||
{
|
{
|
||||||
unsigned register_index;
|
unsigned register_index = 0;
|
||||||
Common::FromChars(offset_match.substr(1), register_index, 10);
|
Common::FromChars(offset_match.substr(1), register_index, 10);
|
||||||
offset = (register_index == 0 ? 0 : m_system.GetPPCState().gpr[register_index]);
|
offset = (register_index == 0 ? 0 : m_system.GetPPCState().gpr[register_index]);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user