From 41e1c9c4ad907c3f890ae65438666e163dcc7a56 Mon Sep 17 00:00:00 2001 From: Mathieu Faverge <mathieu.faverge@inria.fr> Date: Mon, 7 Nov 2016 12:00:53 +0100 Subject: [PATCH] Fix segfault in spmNorm --- spm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spm.c b/spm.c index a5a062b8..922ad3be 100644 --- a/spm.c +++ b/spm.c @@ -334,7 +334,7 @@ double spmNorm( int ntype, const pastix_spm_t *spm ) { - pastix_spm_t *spmtmp; + pastix_spm_t *spmtmp = (pastix_spm_t*)spm; double norm = -1.; if ( spm->dof != 1 ) { -- GitLab