From 3a908c76ef253b5d39ac6c121fe344b1bc3721cb Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Wed, 5 May 2021 10:17:15 +0200 Subject: [PATCH] Prevent crash, refName may be NULL --- src/frontend/outitf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/outitf.c b/src/frontend/outitf.c index ca3bb132b..970926bfc 100644 --- a/src/frontend/outitf.c +++ b/src/frontend/outitf.c @@ -256,7 +256,7 @@ beginPlot(JOB *analysisPtr, CKTcircuit *circuitPtr, char *cktName, char *analNam break; } /* generate a vector of real time information */ - else if (ft_ngdebug && eq(refName, "time") && eq(saves[i].name, "speedcheck")) { + else if (ft_ngdebug && refName && eq(refName, "time") && eq(saves[i].name, "speedcheck")) { addDataDesc(run, "speedcheck", IF_REAL, j, initmem); savesused[i] = TRUE; saves[i].used = 1;