Browse Source

cmVectOpstemplateCode.h : Fix possibly uninitialized value in GaussCovariance().

master
kevin 3 years ago
parent
commit
75067f1304
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/vop/cmVectOpsTemplateCode.h

+ 1
- 1
src/vop/cmVectOpsTemplateCode.h View File

414
 
414
 
415
 void  VECT_OP_FUNC(GaussCovariance2)(VECT_OP_TYPE* yM, unsigned D, const VECT_OP_TYPE* (*srcFunc)(void* userPtr, unsigned idx), unsigned xN, void* userPtr, const VECT_OP_TYPE* uV, const unsigned* selIdxV, unsigned selKey )
415
 void  VECT_OP_FUNC(GaussCovariance2)(VECT_OP_TYPE* yM, unsigned D, const VECT_OP_TYPE* (*srcFunc)(void* userPtr, unsigned idx), unsigned xN, void* userPtr, const VECT_OP_TYPE* uV, const unsigned* selIdxV, unsigned selKey )
416
 {
416
 {
417
-  unsigned i,j,k = 0,n;
417
+  unsigned i,j,k = 0,n=0;
418
   VECT_OP_TYPE tV[ D ];
418
   VECT_OP_TYPE tV[ D ];
419
   const VECT_OP_TYPE* sp;
419
   const VECT_OP_TYPE* sp;
420
   
420
   

Loading…
Cancel
Save