initialize padding of CvString with zeros

pull/5335/head
Ilya Lavrenov 9 years ago committed by Dikay900
parent ee2008abe8
commit df21a24f81
  1. 1
      modules/core/src/datastructs.cpp

@ -352,6 +352,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 );

Loading…
Cancel
Save