mirror of
https://github.com/nasa/trick.git
synced 2025-01-31 08:25:41 +00:00
prevent garbage value loaded as value in LogGroup::getValueAtTime
This commit is contained in:
parent
8315f95a8c
commit
2f328f6697
@ -1312,7 +1312,10 @@ int LogGroup::getValueAtTime( const char *paramName,
|
|||||||
// Get the value at time
|
// Get the value at time
|
||||||
rr = log[yLogIdx]->getValueAtTime(tIdx, time,
|
rr = log[yLogIdx]->getValueAtTime(tIdx, time,
|
||||||
yIdx, &vv) ;
|
yIdx, &vv) ;
|
||||||
*value = vv ;
|
// If value with timestamp found
|
||||||
|
if(rr > 0){
|
||||||
|
*value = vv ;
|
||||||
|
}
|
||||||
|
|
||||||
return(rr);
|
return(rr);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user