mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
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:
parent
71246132f3
commit
30b07b5686
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user