aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-07-05 10:48:57 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-07-05 10:48:57 +0200
commiteec334c604d3fbd0ab7fcb0d9380f87c943afc90 (patch)
treec4eff42147b0631768cfd8e778a4447c749792b1 /Eigen
parent60467e54a5650b5836b5f35bab9730527d250b70 (diff)
fixes a segfault
Diffstat (limited to 'Eigen')
-rw-r--r--Eigen/src/Sparse/SparseMatrix.h2
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];