diff options
author | Gael Guennebaud <g.gael@free.fr> | 2009-07-05 10:48:57 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2009-07-05 10:48:57 +0200 |
commit | eec334c604d3fbd0ab7fcb0d9380f87c943afc90 (patch) | |
tree | c4eff42147b0631768cfd8e778a4447c749792b1 /Eigen/src | |
parent | 60467e54a5650b5836b5f35bab9730527d250b70 (diff) |
fixes a segfault
Diffstat (limited to 'Eigen/src')
-rw-r--r-- | Eigen/src/Sparse/SparseMatrix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Sparse/SparseMatrix.h b/Eigen/src/Sparse/SparseMatrix.h index 03bc60bb5..b751b5cb9 100644 --- a/Eigen/src/Sparse/SparseMatrix.h +++ b/Eigen/src/Sparse/SparseMatrix.h @@ -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]; |