From 78adfa083c4e2e253bc9c135f2d842c2b84a4393 Mon Sep 17 00:00:00 2001 From: yifanhu Date: Tue, 2 Sep 2008 14:59:58 +0000 Subject: [PATCH] added an assert --- lib/sparse/SparseMatrix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/sparse/SparseMatrix.c b/lib/sparse/SparseMatrix.c index 2973d8642..42e8d3443 100644 --- a/lib/sparse/SparseMatrix.c +++ b/lib/sparse/SparseMatrix.c @@ -1610,6 +1610,7 @@ SparseMatrix SparseMatrix_sum_repeat_entries(SparseMatrix A, int what_to_sum){ SparseMatrix SparseMatrix_coordinate_form_add_entries(SparseMatrix A, int nentries, int *irn, int *jcn, void *val){ int nz, type = A->type, nzmax, i; + assert(A); assert(A->format == FORMAT_COORD); if (nentries <= 0) return A; nz = A->nz; -- 2.40.0