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

Loading…
Cancel
Save