summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-11-06 13:44:21 -0800
committerMichael Pavone <pavone@retrodev.com>2015-11-06 13:44:21 -0800
commit9730e62a5e917d5c88bd7626259efb73c26ba73e (patch)
treefe914029371ed2923e8916d914e5162256960ca0
parent70be447f74b87c11557d2b5b1463005fddb0495a (diff)
Properly initialize commands when adding a new breakpoint
-rw-r--r--debug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/debug.c b/debug.c
index 3406fd6..52c044f 100644
--- a/debug.c
+++ b/debug.c
@@ -402,6 +402,7 @@ z80_context * zdebugger(z80_context * context, uint16_t address)
new_bp->next = zbreakpoints;
new_bp->address = value;
new_bp->index = zbp_index++;
+ new_bp->commands = NULL;
zbreakpoints = new_bp;
printf("Z80 Breakpoint %d set at %X\n", new_bp->index, value);
break;