Commit 2d5ab68c authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

gribapiScanTimestep: wrong realloaction of records (bug fix)

parent 0d07752d
......@@ -980,7 +980,7 @@ int gribapiScanTimestep1(stream_t * streamptr)
vlistDefTaxis(vlistID, taxisID);
int nrecords = streamptr->tsteps[0].nallrecs;
if ( nrecords > streamptr->tsteps[0].recordSize )
if ( nrecords < streamptr->tsteps[0].recordSize )
{
streamptr->tsteps[0].recordSize = nrecords;
streamptr->tsteps[0].records =
......
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