From c7e3f55a2d6bbe7cbbf82b7310454adf7bba4ecc Mon Sep 17 00:00:00 2001 From: kpl Date: Sat, 1 Feb 2014 16:26:52 -0800 Subject: [PATCH] cmSdb.c : Fixed potential uninitialized variable in _cmSdbStoreSeqEvent(). --- app/cmSdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/cmSdb.c b/app/cmSdb.c index 617f96c..398977d 100644 --- a/app/cmSdb.c +++ b/app/cmSdb.c @@ -892,7 +892,8 @@ cmSdbRC_t _cmSdbStoreSeqEvent( double limitEvtDurSecs, double* durSecsRef ) { - cmSdbRC_t rc = kOkSdbRC; + cmSdbRC_t rc = kOkSdbRC; + double maxEvtDurSecs = 0; // retrieve the event record const cmSdbEvent_t* ep; @@ -905,7 +906,6 @@ cmSdbRC_t _cmSdbStoreSeqEvent( cmSdbResponseH_t rh0 = cmSdbResponseNullHandle; unsigned rn0 = 0; unsigned ci = 0; - double maxEvtDurSecs = 0; // locate the channel pairs for 'ep'. if( seqChCnt>1 && ep->chCnt>1 )