Commit 9cb8964c authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

vlistInqZaxis: use zaxisGetIndexList() to get global zaxisIDs (bug fix)

parent 4373c50b
......@@ -777,7 +777,7 @@ int varDefZaxis(int vlistID, int zaxistype, int nlevels, double *levels, int lbo
int index;
int zaxisglobdefined = 0;
vlist_t *vlistptr;
int * zaxisIndexList, i;
int i;
vlistptr = vlist_to_pointer(vlistID);
......@@ -801,7 +801,8 @@ int varDefZaxis(int vlistID, int zaxistype, int nlevels, double *levels, int lbo
nzaxis = zaxisSize();
if ( nzaxis > 0 )
{
zaxisIndexList = malloc ( nzaxis * sizeof ( int ));
int *zaxisIndexList;
zaxisIndexList = (int *) malloc ( nzaxis * sizeof ( int ));
zaxisGetIndexList ( nzaxis, zaxisIndexList );
for ( i = 0; i < nzaxis; i++ )
{
......
......@@ -131,7 +131,7 @@ zaxis_t *zaxisNewEntry(void)
}
static
void zaxisInit (void)
void zaxisInit(void)
{
static int zaxisInitialized = 0;
char *env;
......@@ -246,7 +246,7 @@ int zaxisCreate(int zaxistype, int size)
}
void zaxisDestroyKernel ( zaxis_t * zaxisptr )
void zaxisDestroyKernel( zaxis_t * zaxisptr )
{
int id;
......
Supports Markdown
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