dvec abstraction, #5/11, emphasise `v_numdims = 0' initialisation
This commit is contained in:
parent
8a4a37b5bb
commit
cea2664db0
|
|
@ -12,5 +12,7 @@ dvec_alloc(void)
|
|||
|
||||
ZERO(rv, struct dvec);
|
||||
|
||||
rv->v_numdims = 0;
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue