From fdae9b7c06c312eaf1cbc821ada23502cb92ac07 Mon Sep 17 00:00:00 2001 From: rlar Date: Mon, 28 Dec 2015 20:26:34 +0100 Subject: [PATCH] dvec abstraction, #7/11, emphasise `v_scale = NULL' initialisation --- src/frontend/dvec.c | 1 + src/frontend/outitf.c | 1 - src/xspice/evt/evtplot.c | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/frontend/dvec.c b/src/frontend/dvec.c index 9f48174af..2320555d9 100644 --- a/src/frontend/dvec.c +++ b/src/frontend/dvec.c @@ -13,6 +13,7 @@ dvec_alloc(void) ZERO(rv, struct dvec); rv->v_plot = NULL; + rv->v_scale = NULL; rv->v_numdims = 0; return rv; diff --git a/src/frontend/outitf.c b/src/frontend/outitf.c index 6713802ca..cd2d1004e 100644 --- a/src/frontend/outitf.c +++ b/src/frontend/outitf.c @@ -1036,7 +1036,6 @@ plotInit(runDesc *run) v->v_type = guess_type(name); v->v_length = 0; - v->v_scale = NULL; if (!run->isComplex) { v->v_flags = VF_REAL; v->v_realdata = NULL; diff --git a/src/xspice/evt/evtplot.c b/src/xspice/evt/evtplot.c index 20e93545d..2e45e8557 100644 --- a/src/xspice/evt/evtplot.c +++ b/src/xspice/evt/evtplot.c @@ -194,7 +194,6 @@ struct dvec *EVTfindvec( scale->v_flags = VF_REAL & ~VF_PERMANENT; scale->v_length = i; scale->v_realdata = anal_point_vec; - scale->v_scale = NULL; d = dvec_alloc();