Fix some bugs and warnings from a pass of static analysis

This commit is contained in:
Henrik Rydgård
2026-01-29 17:41:54 +01:00
parent 722178e205
commit d6ebfed432
25 changed files with 72 additions and 49 deletions
@@ -276,7 +276,7 @@ void WebSocketCPUGetReg(DebuggerRequest &req) {
return;
int cat, reg;
uint32_t val;
uint32_t val = 0;
switch (ValidateCatReg(req, &cat, &reg)) {
case DebuggerRegType::NORMAL:
val = cpuDebug->GetRegValue(cat, reg);