Prevent crash, refName may be NULL

This commit is contained in:
Holger Vogt 2021-05-05 10:17:15 +02:00
parent 98f8a4fcb2
commit 3a908c76ef
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ beginPlot(JOB *analysisPtr, CKTcircuit *circuitPtr, char *cktName, char *analNam
break; break;
} }
/* generate a vector of real time information */ /* 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); addDataDesc(run, "speedcheck", IF_REAL, j, initmem);
savesused[i] = TRUE; savesused[i] = TRUE;
saves[i].used = 1; saves[i].used = 1;