Skip to content
Snippets Groups Projects
Commit 01a4fdce authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cdiStreamCloseDefaultDelegate: check streamptr->tsteps:

parent c26c0bbe
No related branches found
No related tags found
1 merge request!7Replaced gridDefDatatype()/gridInqDatatype() by cdiDefKeyInt()/cdiInqKeyInt()...
......@@ -993,7 +993,7 @@ void cdiStreamCloseDefaultDelegate(stream_t *streamptr, int recordBufIsToBeDelet
case CDI_FILETYPE_NETCDF:
{
cdfClose(fileID);
if (streamptr->ntsteps == 0)
if (streamptr->ntsteps == 0 && streamptr->tsteps != NULL)
{
if ( streamptr->tsteps[0].records )
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment