ARM Debugger: Fix unitialized stack variable

This commit is contained in:
Vicki Pfau 2023-05-09 22:13:09 -07:00
parent 213a534f4b
commit 7d6a8a86a8
1 changed files with 1 additions and 1 deletions

View File

@ -408,7 +408,7 @@ static void ARMDebuggerListBreakpoints(struct mDebuggerPlatform* d, struct mDebu
struct ARMDebugger* debugger = (struct ARMDebugger*) d;
mBreakpointListClear(list);
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* sw = NULL;
if (i < ARMDebugBreakpointListSize(&debugger->breakpoints)) {