Commit 8e8315ab authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #12434 from alalek:pr12414_rebased

parents a18da0c5 d621a99e
...@@ -228,7 +228,7 @@ void SparseMat::create(int d, const int* _sizes, int _type) ...@@ -228,7 +228,7 @@ void SparseMat::create(int d, const int* _sizes, int _type)
} }
} }
int _sizes_backup[CV_MAX_DIM]; // #5991 int _sizes_backup[CV_MAX_DIM]; // #5991
if (_sizes == hdr->size) if (hdr && _sizes == hdr->size)
{ {
for(int i = 0; i < d; i++ ) for(int i = 0; i < d; i++ )
_sizes_backup[i] = _sizes[i]; _sizes_backup[i] = _sizes[i];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment