From 03b4a874778a47d6bc46581880a55dfb946775b5 Mon Sep 17 00:00:00 2001 From: dwarning Date: Mon, 22 Jun 2020 11:52:42 +0200 Subject: [PATCH] prevent crash if tnode is given but she parameter not --- src/spicelib/devices/hicum2/hicum2setup.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/spicelib/devices/hicum2/hicum2setup.c b/src/spicelib/devices/hicum2/hicum2setup.c index 0d584860b..3c88b1ff8 100644 --- a/src/spicelib/devices/hicum2/hicum2setup.c +++ b/src/spicelib/devices/hicum2/hicum2setup.c @@ -573,6 +573,10 @@ HICUMsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) if (error) return(error); here->HICUMtempNode = tmp->number; } + } else { + if (here->HICUMtempNode > 0) { // external temp node is given, but no she parameter + here->HICUMtempNode = 0; + } } if(here->HICUMxfNode == 0) {