fixed a bug in scanRows CUDA kernel (part of nppStIntegral)
authorVladislav Vinogradov <vlad.vinogradov@itseez.com>
Mon, 13 Apr 2015 14:09:59 +0000 (17:09 +0300)
committerVladislav Vinogradov <vlad.vinogradov@itseez.com>
Mon, 13 Apr 2015 14:09:59 +0000 (17:09 +0300)
uninitialized value

modules/gpu/src/nvidia/NPP_staging/NPP_staging.cu

index 525feb6..af65bbf 100644 (file)
@@ -288,7 +288,7 @@ __global__ void scanRows(T_in *d_src, Ncv32u texOffs, Ncv32u srcWidth, Ncv32u sr
         Ncv32u curElemOffs = offsetX + threadIdx.x;
         T_out curScanElem;
 
-        T_in curElem;
+        T_in curElem = 0;
         T_out curElemMod;
 
         if (curElemOffs < srcWidth)