Commit 88045651 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

stream_gribapi: check stepType

parent 391c529d
......@@ -171,7 +171,10 @@ int gribapiGetTsteptype(grib_handle *gh)
if ( gribapiTimeIsFC(gh) )
{
GRIB_CHECK(grib_get_long(gh, "stepType", &lpar), 0);
int status;
status = grib_get_long(gh, "stepType", &lpar);
if ( status == 0 )
{
timerange = (int) lpar;
// printf("timerange %d\n", timerange);
......@@ -191,6 +194,7 @@ int gribapiGetTsteptype(grib_handle *gh)
}
}
}
}
return (tsteptype);
}
......
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