diff --git a/src/spm_gather.c b/src/spm_gather.c index a918ca69c5ec05239aa123252ac7277e75dbd683..82a1714346cefe020dc64d5c6622c7a8b9f89f69 100644 --- a/src/spm_gather.c +++ b/src/spm_gather.c @@ -24,8 +24,7 @@ * @param[in] spm * The spm to gather. * - * @return The array if triplets { n, nnz, nnzexp } for all nodes on root - * node(s), NULL otherwise. + * @return The array of triplets { n, nnz, nnzexp } for all nodes. */ static inline int * spm_gather_init( const spmatrix_t *spm ) @@ -48,8 +47,8 @@ spm_gather_init( const spmatrix_t *spm ) * @param[in] spm * The spm to gather. * - * @param[in] spm - * The spm to gather. + * @param[in] allcounts + * The array of triplets { n, nnz, nnzexp } for all nodes. */ static inline int spm_gather_check( const spmatrix_t *spm, diff --git a/src/z_spm_2dense.c b/src/z_spm_2dense.c index 4f7715a95215ce1e71188eb63b81634b0f380e23..0910feb8d76e5949a27ee00ed49ec9000ee1c587 100644 --- a/src/z_spm_2dense.c +++ b/src/z_spm_2dense.c @@ -465,7 +465,7 @@ z_spmIJV2dense( const spmatrix_t *spm ) spm_complex64_t * z_spm2dense( const spmatrix_t *spm ) { - spm_complex64_t *A; + spm_complex64_t *A = NULL; if ( spm->loc2glob != NULL ) { fprintf( stderr, "spm2dense: Conversion to dense matrix with distributed spm is not available\n");