Browse Source

#bug 580: prevent crash in case of hicum2 default parameter set

pre-master-46
dwarning 4 years ago
committed by Holger Vogt
parent
commit
3d4d9b01d0
  1. 2
      src/spicelib/devices/hicum2/hicum2setup.c

2
src/spicelib/devices/hicum2/hicum2setup.c

@ -802,7 +802,7 @@ HICUMunsetup(
model = HICUMnextModel(model))
{
int selfheat = (((model->HICUMflsh == 1) || (model->HICUMflsh == 2)) && (model->HICUMrthGiven) && (model->HICUMrth > 0.0));
int nqs = ( (model->HICUMflnqs != 0 || model->HICUMflcomp < 2.3) && (model->HICUMalit > 0 || model->HICUMalqf > 0));
int nqs = ((model->HICUMflnqs != 0 || model->HICUMflcomp < 2.3) && (model->HICUMt0Given) && (model->HICUMt0 > 0.0) && (model->HICUMalit > 0 || model->HICUMalqf > 0));
for (here = HICUMinstances(model); here != NULL;
here=HICUMnextInstance(here))

Loading…
Cancel
Save