prevent crash, if due to input bug ckt is not created,

reported by  Andrian
This commit is contained in:
h_vogt 2013-12-11 16:32:08 +01:00 committed by rlar
parent 6af85a6389
commit 780ccbfb3c
1 changed files with 2 additions and 1 deletions

View File

@ -852,7 +852,8 @@ inp_dodeck(
}
/* set ckt->CKTisLinear=1 if circuit only contains R, L, C */
cktislinear(ckt, deck);
if (ckt)
cktislinear(ckt, deck);
/* set some output terminal data */
out_init();