[opencv] 01/33: fixed valgrind warning in polylines

Mattia Rizzolo mattia at debian.org
Tue Oct 4 17:51:01 UTC 2016


This is an automated email from the git hooks/post-receive script.

mattia pushed a commit to annotated tag 2.4.12.2
in repository opencv.

commit fc0e0239b8d6d3d65f59a2f062bd133d6cc845d9
Author: Ilya Lavrenov <ilya.lavrenov at itseez.com>
Date:   Fri Aug 14 17:57:54 2015 +0300

    fixed valgrind warning in polylines
    
    (cherry picked from commit 855765986e9cd5c730730dd1f45175b182e737fa)
---
 modules/core/src/drawing.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/core/src/drawing.cpp b/modules/core/src/drawing.cpp
index bd42ac5..bd8f171 100644
--- a/modules/core/src/drawing.cpp
+++ b/modules/core/src/drawing.cpp
@@ -2216,6 +2216,7 @@ void cv::polylines(InputOutputArray _img, InputArrayOfArrays pts,
         Mat p = pts.getMat(manyContours ? i : -1);
         if( p.total() == 0 )
         {
+            ptsptr[i] = NULL;
             npts[i] = 0;
             continue;
         }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git



More information about the debian-science-commits mailing list