Commit b129b14f authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Merge initialization and declaration.

parent 2c2678f3
......@@ -6664,7 +6664,6 @@ void define_all_zaxes(stream_t *streamptr, int vlistID, ncdim_t *ncdims, int nva
int zdimid = UNDEFID;
int zvarid = UNDEFID;
int zsize = 1;
double *zvar = NULL;
double *lbounds = NULL;
double *ubounds = NULL;
int zaxisType;
......@@ -6686,7 +6685,7 @@ void define_all_zaxes(stream_t *streamptr, int vlistID, ncdim_t *ncdims, int nva
if ( CDI_Debug ) Message("nlevs = %d", zsize);
zvar = (double *)xmalloc((size_t)zsize * sizeof (double));
double *zvar = (double *)xmalloc((size_t)zsize * sizeof (double));
zaxisType = UNDEFID;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment