Skip to content

Commit

Permalink
Merge pull request opencv#5299 from ilya-lavrenov:core_hog
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed Sep 4, 2015
2 parents 76235cb + 7b1eb3a commit 6fefc53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/core/src/datastructs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 6fefc53

Please sign in to comment.