dvec abstraction, #7/11, emphasise `v_scale = NULL' initialisation

This commit is contained in:
rlar 2015-12-28 20:26:34 +01:00
parent 1304001739
commit fdae9b7c06
3 changed files with 1 additions and 2 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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();