From 3def275be4828b59b1b5a9ab5bb4b88a5fd49eb9 Mon Sep 17 00:00:00 2001 From: Jim Monte Date: Sat, 15 Jun 2019 00:39:56 +0200 Subject: [PATCH] [PATCH #76] Fixed access violation when iplot called without a circuit loaded. --- src/frontend/breakp.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/frontend/breakp.c b/src/frontend/breakp.c index 9256a5368..ae5c5d97c 100644 --- a/src/frontend/breakp.c +++ b/src/frontend/breakp.c @@ -176,6 +176,13 @@ com_trce(wordlist *wl) void com_iplot(wordlist *wl) { + /* Check for an active circuit */ + if (ft_curckt == (struct circ *) NULL) { + fprintf(cp_err, "No circuit loaded. " + "Incremental plotting is not possible.\n"); + return; + } + /* settrace(wl, VF_PLOT); */ struct dbcomm *d, *td, *currentdb = NULL;