diff --git a/src/frontend/breakp.c b/src/frontend/breakp.c index 8fa90720e..9256a5368 100644 --- a/src/frontend/breakp.c +++ b/src/frontend/breakp.c @@ -36,6 +36,12 @@ static int steps = 0; void com_stop(wordlist *wl) { + /* Check for an active circuit */ + if (ft_curckt == (struct circ *) NULL) { + fprintf(cp_err, "No circuit loaded. Stopping is not possible.\n"); + return; + } + struct dbcomm *thisone = NULL; struct dbcomm *d = NULL; char *s, buf[64];