From: yifanhu Date: Tue, 2 Sep 2008 14:59:58 +0000 (+0000) Subject: added an assert X-Git-Tag: LAST_LIBGRAPH~32^2~3493 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78adfa083c4e2e253bc9c135f2d842c2b84a4393;p=graphviz added an assert --- 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;