From 9730e62a5e917d5c88bd7626259efb73c26ba73e Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Fri, 6 Nov 2015 13:44:21 -0800 Subject: Properly initialize commands when adding a new breakpoint --- debug.c | 1 + 1 file changed, 1 insertion(+) (limited to 'debug.c') 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; -- cgit v1.2.3