Commit 86eae4dc authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cdfInqContents(): bug fix for ncvars[nctimevarid].units.

parent ba5ab54c
......@@ -3986,7 +3986,7 @@ int cdfInqContents(stream_t *streamptr)
// time varID
int nctimevarid = streamptr->basetime.ncvarid;
if (!time_has_units || streamptr->basetime.lwrf) ncvars[nctimevarid].units[0] = 0;
if (nctimevarid != CDI_UNDEFID && (!time_has_units || streamptr->basetime.lwrf)) ncvars[nctimevarid].units[0] = 0;
if ( time_has_units )
{
......
Markdown is supported
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