File mpich-1.2.7_bsendutil2.c_uninitialized_variables.patch of Package mpich

Index: src/util/bsendutil2.c
===================================================================
--- src/util/bsendutil2.c.orig
+++ src/util/bsendutil2.c
@@ -510,11 +510,12 @@
 	MPI_Request request, 
 	int *error_code )
 {
-    int         bsend_len;
-    void        *bsend_buf;
+    int         bsend_len = 0;
+    void        *bsend_buf = NULL;
     int		psize;
     int         mpi_errno = MPI_SUCCESS;
-    BSendData * b;
+    BSendData * b = NULL;
+
 
     /* Trivial case first */
     if (dest_grank == MPI_PROC_NULL) {
openSUSE Build Service is sponsored by