From a9dbfab095dfa8865c714c1f6773f26d3455aab0 Mon Sep 17 00:00:00 2001
From: Mathieu Faverge <mathieu.faverge@inria.fr>
Date: Mon, 15 Jun 2020 15:08:53 +0200
Subject: [PATCH] Minor (comment + initialization)

---
 src/spm_gather.c   | 7 +++----
 src/z_spm_2dense.c | 2 +-
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/spm_gather.c b/src/spm_gather.c
index a918ca69..82a17143 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 4f7715a9..0910feb8 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");
-- 
GitLab