瀏覽代碼

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

master
kevin 3 年之前
父節點
當前提交
75067f1304
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/vop/cmVectOpsTemplateCode.h

+ 1
- 1
src/vop/cmVectOpsTemplateCode.h 查看文件

@@ -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…
取消
儲存