From ad5da69f3d7c7abb83e87ca94fea04232483bff3 Mon Sep 17 00:00:00 2001 From: dwarning Date: Thu, 11 Jul 2024 11:53:09 +0200 Subject: [PATCH] diode: init of potential uninitialized variable --- src/spicelib/devices/dio/diotemp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spicelib/devices/dio/diotemp.c b/src/spicelib/devices/dio/diotemp.c index 697e9d1d6..b1caceb16 100644 --- a/src/spicelib/devices/dio/diotemp.c +++ b/src/spicelib/devices/dio/diotemp.c @@ -33,7 +33,7 @@ void DIOtempUpdate(DIOmodel *inModel, DIOinstance *here, double Temp, CKTcircuit double egfet1,arg1,fact1,pbfact1,pbo,gmaold,pboSW,gmaSWold; double fact2,pbfact,arg,egfet,gmanew,gmaSWnew; double arg1_dT, arg2, arg2_dT; - double lnTRatio, egfet_dT, arg0, vte_dT, vts_dT, vtt_dT, vtr_dT; + double lnTRatio, egfet_dT = 0.0, arg0, vte_dT, vts_dT, vtt_dT, vtr_dT; vt = CONSTKoverQ * Temp; vte = model->DIOemissionCoeff * vt;