From 08feced9b628c0e238c464c6c8308c8117f792bd Mon Sep 17 00:00:00 2001 From: rlar Date: Wed, 23 Dec 2015 10:46:42 +0100 Subject: [PATCH] frontend/rawfile.c, raw_read(), reorder --- src/frontend/rawfile.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/frontend/rawfile.c b/src/frontend/rawfile.c index 8df116950..2364b64fc 100644 --- a/src/frontend/rawfile.c +++ b/src/frontend/rawfile.c @@ -467,15 +467,17 @@ raw_read(char *name) { v = alloc(struct dvec); ZERO(v, struct dvec); v->v_type = SV_NOTYPE; + v->v_flags = (short)flags; + v->v_length = npoints; + v->v_numdims = 0; + /* Length and dims might be changed by options. */ + + v->v_plot = curpl; + v->v_next = curpl->pl_dvecs; curpl->pl_dvecs = v; if (!curpl->pl_scale) curpl->pl_scale = v; - v->v_flags = (short)flags; - v->v_plot = curpl; - v->v_length = npoints; - v->v_numdims = 0; - /* Length and dims might be changed by options. */ if (!i) { curpl->pl_scale = v;