From 0f23becb8d279c140c059e7a0f442d54f9ef1aad Mon Sep 17 00:00:00 2001 From: dwarning Date: Fri, 28 Nov 2008 19:07:09 +0000 Subject: [PATCH] Initialization of the struct pParam with NULL --- src/spicelib/devices/bsim3/b3temp.c | 2 +- src/spicelib/devices/bsim3soi/b4soitemp.c | 2 +- src/spicelib/devices/bsim4/b4temp.c | 2 +- src/spicelib/devices/bsim4v2/b4v2temp.c | 2 +- src/spicelib/devices/bsim4v3/b4v3temp.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/spicelib/devices/bsim3/b3temp.c b/src/spicelib/devices/bsim3/b3temp.c index 7a641d587..acf7583ee 100644 --- a/src/spicelib/devices/bsim3/b3temp.c +++ b/src/spicelib/devices/bsim3/b3temp.c @@ -37,7 +37,7 @@ CKTcircuit *ckt; { BSIM3model *model = (BSIM3model*) inModel; BSIM3instance *here; -struct bsim3SizeDependParam *pSizeDependParamKnot, *pLastKnot, *pParam; +struct bsim3SizeDependParam *pSizeDependParamKnot, *pLastKnot, *pParam=NULL; double tmp, tmp1, tmp2, tmp3, Eg, Eg0, ni, T0, T1, T2, T3, T4, T5, Ldrn, Wdrn; double delTemp, Temp, TRatio, Inv_L, Inv_W, Inv_LW, Vtm0, Tnom; double Nvtm, SourceSatCurrent, DrainSatCurrent; diff --git a/src/spicelib/devices/bsim3soi/b4soitemp.c b/src/spicelib/devices/bsim3soi/b4soitemp.c index d35affea3..d76909173 100644 --- a/src/spicelib/devices/bsim3soi/b4soitemp.c +++ b/src/spicelib/devices/bsim3soi/b4soitemp.c @@ -47,7 +47,7 @@ B4SOItemp(GENmodel *inModel, CKTcircuit *ckt) { register B4SOImodel *model = (B4SOImodel*) inModel; register B4SOIinstance *here; -struct b4soiSizeDependParam *pSizeDependParamKnot, *pLastKnot, *pParam; +struct b4soiSizeDependParam *pSizeDependParamKnot, *pLastKnot, *pParam=NULL; double tmp, tmp1, tmp2, Eg, Eg0, ni, T0, T1, T2, T3, T4, T5; double Ldrn=0.0, Wdrn; double Temp, TempRatio, Inv_L, Inv_W, Inv_LW, Vtm0, Tnom, TRatio; diff --git a/src/spicelib/devices/bsim4/b4temp.c b/src/spicelib/devices/bsim4/b4temp.c index ef6c45a03..db24b39e7 100644 --- a/src/spicelib/devices/bsim4/b4temp.c +++ b/src/spicelib/devices/bsim4/b4temp.c @@ -78,7 +78,7 @@ CKTcircuit *ckt; { BSIM4model *model = (BSIM4model*) inModel; BSIM4instance *here; -struct bsim4SizeDependParam *pSizeDependParamKnot, *pLastKnot, *pParam; +struct bsim4SizeDependParam *pSizeDependParamKnot, *pLastKnot, *pParam=NULL; double tmp, tmp1, tmp2, tmp3, Eg, Eg0, ni, epssub; double T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T11, Lnew=0.0, Wnew; double delTemp, Temp, TRatio, Inv_L, Inv_W, Inv_LW, Vtm0, Tnom; diff --git a/src/spicelib/devices/bsim4v2/b4v2temp.c b/src/spicelib/devices/bsim4v2/b4v2temp.c index e6427ce73..75740396a 100644 --- a/src/spicelib/devices/bsim4v2/b4v2temp.c +++ b/src/spicelib/devices/bsim4v2/b4v2temp.c @@ -58,7 +58,7 @@ CKTcircuit *ckt; { BSIM4v2model *model = (BSIM4v2model*) inModel; BSIM4v2instance *here; -struct bsim4SizeDependParam *pSizeDependParamKnot, *pLastKnot, *pParam; +struct bsim4SizeDependParam *pSizeDependParamKnot, *pLastKnot, *pParam=NULL; double tmp, tmp1, tmp2, tmp3, Eg, Eg0, ni; double T0, T1, T2, T3, T4, T5, T8, T9, Lnew=0.0, Wnew; double delTemp, Temp, TRatio, Inv_L, Inv_W, Inv_LW, Vtm0, Tnom; diff --git a/src/spicelib/devices/bsim4v3/b4v3temp.c b/src/spicelib/devices/bsim4v3/b4v3temp.c index 5fac3d64c..4b85a4aa8 100644 --- a/src/spicelib/devices/bsim4v3/b4v3temp.c +++ b/src/spicelib/devices/bsim4v3/b4v3temp.c @@ -60,7 +60,7 @@ CKTcircuit *ckt; { BSIM4v3model *model = (BSIM4v3model*) inModel; BSIM4v3instance *here; -struct bsim4v3SizeDependParam *pSizeDependParamKnot, *pLastKnot, *pParam; +struct bsim4v3SizeDependParam *pSizeDependParamKnot, *pLastKnot, *pParam=NULL; double tmp, tmp1, tmp2, tmp3, Eg, Eg0, ni; double T0, T1, T2, T3, T4, T5, T8, T9, Lnew=0.0, Wnew; double delTemp, Temp, TRatio, Inv_L, Inv_W, Inv_LW, Vtm0, Tnom;