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

Call nc_inq_path() only if HAVE_NETCDF4

parent 2a4ce165
No related branches found
Tags cdi-2.5.0
1 merge request!105Develop
Pipeline #89402 passed
......@@ -720,6 +720,7 @@ streamOpenNCMem(int ncidp, char mode)
stream_t *streamptr = stream_new_entry(CDI_UNDEFID);
int streamID = CDI_ESYSTEM;
#ifdef HAVE_NETCDF4
streamID = streamptr->self;
if (streamID < 0) return CDI_ELIMIT;
......@@ -744,6 +745,7 @@ streamOpenNCMem(int ncidp, char mode)
reshRemove(streamptr->self, &streamOps);
}
}
#endif
return streamID;
}
......
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