mirror of https://github.com/mgba-emu/mgba.git
ARM Debugger: Fix unitialized stack variable
This commit is contained in:
parent
213a534f4b
commit
7d6a8a86a8
|
@ -408,7 +408,7 @@ static void ARMDebuggerListBreakpoints(struct mDebuggerPlatform* d, struct mDebu
|
||||||
struct ARMDebugger* debugger = (struct ARMDebugger*) d;
|
struct ARMDebugger* debugger = (struct ARMDebugger*) d;
|
||||||
mBreakpointListClear(list);
|
mBreakpointListClear(list);
|
||||||
size_t i, s;
|
size_t i, s;
|
||||||
for (i = 0; i < ARMDebugBreakpointListSize(&debugger->breakpoints) || s < ARMDebugBreakpointListSize(&debugger->swBreakpoints);) {
|
for (i = 0, s = 0; i < ARMDebugBreakpointListSize(&debugger->breakpoints) || s < ARMDebugBreakpointListSize(&debugger->swBreakpoints);) {
|
||||||
struct ARMDebugBreakpoint* hw = NULL;
|
struct ARMDebugBreakpoint* hw = NULL;
|
||||||
struct ARMDebugBreakpoint* sw = NULL;
|
struct ARMDebugBreakpoint* sw = NULL;
|
||||||
if (i < ARMDebugBreakpointListSize(&debugger->breakpoints)) {
|
if (i < ARMDebugBreakpointListSize(&debugger->breakpoints)) {
|
||||||
|
|
Loading…
Reference in New Issue