General: Resolve a few missing initializer warnings

Resolves a few -Wmissing-initializer warnings.
This commit is contained in:
Lioncash 2020-10-29 01:48:02 -04:00
parent c20569ebdf
commit 5553bd3ba2
5 changed files with 24 additions and 4 deletions

View file

@ -147,10 +147,18 @@ std::vector<ARM_Interface::BacktraceEntry> ARM_Interface::GetBacktraceFromContex
auto fp = ctx.cpu_registers[29];
auto lr = ctx.cpu_registers[30];
while (true) {
out.push_back({"", 0, lr, 0});
if (!fp) {
out.push_back({
.module = "",
.address = 0,
.original_address = lr,
.offset = 0,
.name = {},
});
if (fp == 0) {
break;
}
lr = memory.Read64(fp + 8) - 4;
fp = memory.Read64(fp);
}