Browse Source

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

pre-master-46
rlar 10 years ago
parent
commit
cea2664db0
  1. 2
      src/frontend/dvec.c
  2. 1
      src/frontend/rawfile.c

2
src/frontend/dvec.c

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

1
src/frontend/rawfile.c

@ -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…
Cancel
Save