fixed "Conditional jump or move depends on uninitialised value" warning
authorIlya Lavrenov <ilya.lavrenov@itseez.com>
Thu, 20 Aug 2015 09:20:38 +0000 (12:20 +0300)
committerIlya Lavrenov <ilya.lavrenov@itseez.com>
Thu, 20 Aug 2015 09:20:38 +0000 (12:20 +0300)
modules/imgproc/test/test_imgwarp.cpp

index 99cffbc..a14ea53 100644 (file)
@@ -1420,6 +1420,8 @@ TEST(Imgproc_cvWarpAffine, regression)
     IplImage* src = cvCreateImage(cvSize(100, 100), IPL_DEPTH_8U, 1);
     IplImage* dst = cvCreateImage(cvSize(100, 100), IPL_DEPTH_8U, 1);
 
+    cvZero(src);
+
     float m[6];
     CvMat M = cvMat( 2, 3, CV_32F, m );
     int w = src->width;