spatialGradient: Suppress uninitialised j warnings
authorSeon-Wook Park <seon.wook@swook.net>
Fri, 26 Jun 2015 23:03:43 +0000 (01:03 +0200)
committerSeon-Wook Park <seon.wook@swook.net>
Fri, 26 Jun 2015 23:03:43 +0000 (01:03 +0200)
modules/imgproc/src/spatialgradient.cpp

index f33c28d..5119fa0 100644 (file)
@@ -70,7 +70,8 @@ void spatialGradient( InputArray _src, OutputArray _dx, OutputArray _dy,
               W = src.cols;
 
     // Row, column indices
-    int i, j;
+    int i = 0,
+        j = 0;
 
     // Store pointers to rows of input/output data
     // Padded by two rows for border handling