diff --git a/modules/gpu/src/nvidia/NPP_staging/NPP_staging.cu b/modules/gpu/src/nvidia/NPP_staging/NPP_staging.cu index 525feb68b7..af65bbf3e3 100644 --- a/modules/gpu/src/nvidia/NPP_staging/NPP_staging.cu +++ b/modules/gpu/src/nvidia/NPP_staging/NPP_staging.cu @@ -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)