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

streamInqRecord: check varID.

parent 3a67851c
No related branches found
No related tags found
1 merge request!34Version 2.2.0
Pipeline #24073 failed
......@@ -118,6 +118,8 @@ streamInqRecord(int streamID, int *varID, int *levelID)
if (recID == -1 || recID >= streamptr->tsteps[tsID].nallrecs) Error("Internal problem! tsID = %d recID = %d", tsID, recID);
*varID = streamptr->tsteps[tsID].records[recID].varID;
if (*varID == -1) Error("Internal problem! varID = %d recID = %d", *varID, recID);
const int lindex = streamptr->tsteps[tsID].records[recID].levelID;
const int isub = subtypeInqActiveIndex(streamptr->vars[*varID].subtypeID);
......
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