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

stream_cgribex: check wether taxisID is valid

parent e5916f72
......@@ -1566,13 +1566,15 @@ int cgribexDefDateTime(int *isec1, int timeunit, int date, int time)
static
void cgribexDefTime(int *isec1, int vdate, int vtime, int tsteptype, int numavg, int taxisID)
{
int timetype = -1;
int timetype = TAXIS_ABSOLUTE;
int timerange = 0;
int timeunit;
if ( taxisID != -1 ) timetype = taxisInqType(taxisID);
int timeunit = TUNIT_HOUR;
timeunit = taxisInqTunit(taxisID);
if ( taxisID != -1 )
{
timetype = taxisInqType(taxisID);
timeunit = taxisInqTunit(taxisID);
}
if ( timetype == TAXIS_RELATIVE )
{
......
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