[opencv] 27/33: initialize padding of CvString with zeros

Mattia Rizzolo mattia at debian.org
Tue Oct 4 17:51:06 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 f4ffcae8d98035cb79d64eb37de5eab6b55690e1
Author: Ilya Lavrenov <ilya.lavrenov at itseez.com>
Date:   Thu Sep 3 17:21:04 2015 +0300

    initialize padding of CvString with zeros
    
    (cherry picked from commit 7b1eb3af7bb82dfd9258f6abdec350688cf65b51)
---
 modules/core/src/datastructs.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/core/src/datastructs.cpp b/modules/core/src/datastructs.cpp
index 76c3b2c..ddadd39 100644
--- a/modules/core/src/datastructs.cpp
+++ b/modules/core/src/datastructs.cpp
@@ -346,6 +346,7 @@ CV_IMPL CvString
 cvMemStorageAllocString( CvMemStorage* storage, const char* ptr, int len )
 {
     CvString str;
+    memset(&str, 0, sizeof(CvString));
 
     str.len = len >= 0 ? len : (int)strlen(ptr);
     str.ptr = (char*)cvMemStorageAlloc( storage, str.len + 1 );

-- 
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