cmSdb.c : Fixed potential uninitialized variable in _cmSdbStoreSeqEvent().
This commit is contained in:
parent
9f4c7bd291
commit
c7e3f55a2d
@ -892,7 +892,8 @@ cmSdbRC_t _cmSdbStoreSeqEvent(
|
|||||||
double limitEvtDurSecs,
|
double limitEvtDurSecs,
|
||||||
double* durSecsRef )
|
double* durSecsRef )
|
||||||
{
|
{
|
||||||
cmSdbRC_t rc = kOkSdbRC;
|
cmSdbRC_t rc = kOkSdbRC;
|
||||||
|
double maxEvtDurSecs = 0;
|
||||||
|
|
||||||
// retrieve the event record
|
// retrieve the event record
|
||||||
const cmSdbEvent_t* ep;
|
const cmSdbEvent_t* ep;
|
||||||
@ -905,7 +906,6 @@ cmSdbRC_t _cmSdbStoreSeqEvent(
|
|||||||
cmSdbResponseH_t rh0 = cmSdbResponseNullHandle;
|
cmSdbResponseH_t rh0 = cmSdbResponseNullHandle;
|
||||||
unsigned rn0 = 0;
|
unsigned rn0 = 0;
|
||||||
unsigned ci = 0;
|
unsigned ci = 0;
|
||||||
double maxEvtDurSecs = 0;
|
|
||||||
|
|
||||||
// locate the channel pairs for 'ep'.
|
// locate the channel pairs for 'ep'.
|
||||||
if( seqChCnt>1 && ep->chCnt>1 )
|
if( seqChCnt>1 && ep->chCnt>1 )
|
||||||
|
Loading…
Reference in New Issue
Block a user