Browse Source

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

master
kpl 10 years ago
parent
commit
c7e3f55a2d
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      app/cmSdb.c

+ 2
- 2
app/cmSdb.c View File

892
   double           limitEvtDurSecs,
892
   double           limitEvtDurSecs,
893
   double*          durSecsRef )
893
   double*          durSecsRef )
894
 {
894
 {
895
-  cmSdbRC_t rc = kOkSdbRC;
895
+  cmSdbRC_t rc            = kOkSdbRC;
896
+  double    maxEvtDurSecs = 0;
896
 
897
 
897
   // retrieve the event record
898
   // retrieve the event record
898
   const cmSdbEvent_t* ep;
899
   const cmSdbEvent_t* ep;
905
   cmSdbResponseH_t rh0           = cmSdbResponseNullHandle;
906
   cmSdbResponseH_t rh0           = cmSdbResponseNullHandle;
906
   unsigned         rn0           = 0;
907
   unsigned         rn0           = 0;
907
   unsigned         ci            = 0;
908
   unsigned         ci            = 0;
908
-  double           maxEvtDurSecs = 0;
909
 
909
 
910
   // locate the channel pairs for 'ep'.
910
   // locate the channel pairs for 'ep'.
911
   if( seqChCnt>1 && ep->chCnt>1 )
911
   if( seqChCnt>1 && ep->chCnt>1 )

Loading…
Cancel
Save