Bladeren bron

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

master
kevin 3 jaren geleden
bovenliggende
commit
75067f1304
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1
    1
      src/vop/cmVectOpsTemplateCode.h

+ 1
- 1
src/vop/cmVectOpsTemplateCode.h Bestand weergeven

@@ -414,7 +414,7 @@ void  VECT_OP_FUNC(GaussCovariance)(VECT_OP_TYPE* yM, unsigned D, const VECT_OP_
414 414
 
415 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 418
   VECT_OP_TYPE tV[ D ];
419 419
   const VECT_OP_TYPE* sp;
420 420
   

Laden…
Annuleren
Opslaan