From 5bff188120d6ba3213388fa45fd80de8cfdeb6e1 Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Wed, 23 Jul 2008 17:39:39 +0000
Subject: [PATCH] eliminate non-initialized variable that produces AIX build
 warning

---
 src/plugins/mpi/mvapich/mvapich.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/plugins/mpi/mvapich/mvapich.c b/src/plugins/mpi/mvapich/mvapich.c
index b361707353d..5e9c50a92d3 100644
--- a/src/plugins/mpi/mvapich/mvapich.c
+++ b/src/plugins/mpi/mvapich/mvapich.c
@@ -485,9 +485,9 @@ again:
 
 	/*
 	 *  Loop through poll fds and return first mvapich_info object
-     *   we find that has the requested read/write activity. 
+	 *   we find that has the requested read/write activity. 
 	 *   When found, we update the loop counter, and return
-     *   the corresponding mvapich_info object.
+	 *   the corresponding mvapich_info object.
 	 *
 	 */
 	for (i = mp->counter; i < mp->nfds; i++) {
@@ -800,7 +800,7 @@ static int mvapich_recv (mvapich_state_t *st, void* buf, int size, int rank)
 /* Scatter data in buf to ranks using chunks of size bytes */
 static int mvapich_scatterbcast (mvapich_state_t *st, void* buf, int size)
 {
-	int rc;
+	int rc = 0;
 	int n = 0;
 	struct mvapich_poll *mp;
 	struct mvapich_info *mvi;
-- 
GitLab