It is not obvious that cur is not null iff thisSlice is not -1, but
this is what happens in the caller.
// fix cursor
vector<CursorSlice> argSlices;
int argPos = 0;
// fix cursor
vector<CursorSlice> argSlices;
int argPos = 0;
- if (thisSlice != -1 && thisPos == int(pos))
+ // Note: The two expressions on the first line are equivalent
+ // (see caller), but making this explicit pleases coverity.
+ if (cur && thisSlice != -1
+ && thisPos == int(pos))
cur->cutOff(thisSlice, argSlices);
// which kind of parameter is it? In {}? With index x^n?
cur->cutOff(thisSlice, argSlices);
// which kind of parameter is it? In {}? With index x^n?