Make sure the result value of count_from_Status is defined.

Fixes #330147.  [Unverified!]


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15639
This commit is contained in:
Julian Seward 2015-09-07 19:40:20 +00:00
parent 71246132f3
commit 30b07b5686

View File

@ -417,6 +417,7 @@ static __inline__ Bool count_from_Status( /*OUT*/int* recv_count,
int err = PMPI_Get_count(status, datatype, &n);
if (cONFIG_DER) VALGRIND_ENABLE_ERROR_REPORTING;
if (err == MPI_SUCCESS) {
VALGRIND_MAKE_MEM_DEFINED(&n, sizeof(n));
*recv_count = n;
return True;
} else {