Commit 517d629a authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

tests/test_grib.c: init data array

parent cb25971a
......@@ -28,6 +28,7 @@ int main(int argc, char *argv[])
datasize = nlon * nlat;
data = (double *) malloc(datasize*sizeof(double));
memset(data, 0, datasize*sizeof(double));
gridID = gridCreate(GRID_GAUSSIAN, datasize);
gridDefXsize(gridID, nlon);
......@@ -83,6 +84,7 @@ int main(int argc, char *argv[])
}
data = (double *) malloc(datasize*sizeof(double));
memset(data, 0, datasize*sizeof(double));
taxisID = vlistInqTaxis(vlistID);
......
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