[PATCH #73] Fixed crash when attempting to set a breakpoint without a

circuit loaded.
This commit is contained in:
Jim Monte 2019-06-15 00:34:11 +02:00 committed by Holger Vogt
parent e208aab4cd
commit 978429018b
1 changed files with 6 additions and 0 deletions

View File

@ -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];