dvec abstraction, #5/11, emphasise `v_numdims = 0' initialisation

This commit is contained in:
rlar 2015-12-28 20:25:44 +01:00
parent 8a4a37b5bb
commit cea2664db0
2 changed files with 2 additions and 1 deletions

View File

@ -12,5 +12,7 @@ dvec_alloc(void)
ZERO(rv, struct dvec);
rv->v_numdims = 0;
return rv;
}

View File

@ -476,7 +476,6 @@ raw_read(char *name) {
v->v_realdata = TMALLOC(double, npoints);
else
v->v_compdata = TMALLOC(ngcomplex_t, npoints);
v->v_numdims = 0;
/* Length and dims might be changed by options. */
v->v_plot = curpl;