mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-20 00:27:48 +08:00
fixes a segfault
This commit is contained in:
parent
60467e54a5
commit
eec334c604
@ -371,7 +371,7 @@ class SparseMatrix
|
||||
const int outerSize = IsRowMajor ? rows : cols;
|
||||
m_innerSize = IsRowMajor ? cols : rows;
|
||||
m_data.clear();
|
||||
if (m_outerSize != outerSize)
|
||||
if (m_outerSize != outerSize || m_outerSize==0)
|
||||
{
|
||||
delete[] m_outerIndex;
|
||||
m_outerIndex = new int [outerSize+1];
|
||||
|
Loading…
x
Reference in New Issue
Block a user