Browse Source

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

circuit loaded.
pre-master-46
Jim Monte 7 years ago
committed by Holger Vogt
parent
commit
978429018b
  1. 6
      src/frontend/breakp.c

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

Loading…
Cancel
Save