Browse Source

breakp2.c, prevent crash in `save' command if no circuit is loaded

pre-master-46
h_vogt 10 years ago
committed by rlar
parent
commit
77380219d8
  1. 5
      src/frontend/breakp2.c

5
src/frontend/breakp2.c

@ -52,6 +52,11 @@ settrace(wordlist *wl, int what, char *name)
struct dbcomm *d, *td;
char *s;
if (!ft_curckt) {
fprintf(cp_err, "Error: no circuit loaded\n");
return;
}
while (wl) {
s = cp_unquote(wl->wl_word);
d = TMALLOC(struct dbcomm, 1);

Loading…
Cancel
Save