Explorar el Código

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

master
kevin hace 3 años
padre
commit
75067f1304
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/vop/cmVectOpsTemplateCode.h

+ 1
- 1
src/vop/cmVectOpsTemplateCode.h Ver fichero

@@ -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
   

Loading…
Cancelar
Guardar