Browse Source

prevent crash

bug-395 reported by Bohdan Tkhir
pre-master-46
Holger Vogt 7 years ago
parent
commit
3494e6b390
  1. 2
      src/frontend/com_display.c

2
src/frontend/com_display.c

@ -43,6 +43,8 @@ com_display(wordlist *wl)
tfree(s); /*DG to avoid the cp_unquote memory leak */ tfree(s); /*DG to avoid the cp_unquote memory leak */
if (d == NULL) if (d == NULL)
fprintf(cp_err, "Error: no such vector as %s.\n", wl->wl_word); fprintf(cp_err, "Error: no such vector as %s.\n", wl->wl_word);
else if (d->v_plot == NULL)
fprintf(cp_err, "Error: no analog vector as %s.\n", wl->wl_word);
else else
while (d) { while (d) {
pvec(d); pvec(d);

Loading…
Cancel
Save