return immediately if ckt is NULL

This commit is contained in:
Holger Vogt 2020-01-18 00:24:10 +01:00
parent 8b8f7ab5b9
commit 5f05d217ac
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,9 @@ CKTdestroy(CKTcircuit *ckt)
CKTnode *node;
CKTnode *nnode;
if (!ckt)
return (E_NOTFOUND);
#ifdef WANT_SENSE2
if(ckt->CKTsenInfo){