mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
fix for memory problem in tst_vars2.c
This commit is contained in:
parent
dd41680f90
commit
cb4722a0cf
@ -778,6 +778,7 @@ main(int argc, char **argv)
|
|||||||
int dimids[NDIMS5], dimids_in[NDIMS5];
|
int dimids[NDIMS5], dimids_in[NDIMS5];
|
||||||
int varid, varid1, varid2, varid3, varid4;
|
int varid, varid1, varid2, varid3, varid4;
|
||||||
int ndims, nvars, natts, unlimdimid;
|
int ndims, nvars, natts, unlimdimid;
|
||||||
|
int varids_in[NVAR4];
|
||||||
nc_type xtype_in;
|
nc_type xtype_in;
|
||||||
char name_in[NC_MAX_NAME + 1];
|
char name_in[NC_MAX_NAME + 1];
|
||||||
int data[DIM5_LEN], data_in[DIM5_LEN];
|
int data[DIM5_LEN], data_in[DIM5_LEN];
|
||||||
|
Loading…
Reference in New Issue
Block a user