cmSdb.c : Fixed potential uninitialized variable in _cmSdbStoreSeqEvent().

This commit is contained in:
kpl 2014-02-01 16:26:52 -08:00
parent 9f4c7bd291
commit c7e3f55a2d

View File

@ -893,6 +893,7 @@ cmSdbRC_t _cmSdbStoreSeqEvent(
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 )