1
1

MPI_Unpack: fix error code when insize <= 0

this fixes a regression from open-mpi/ompi@f2e33c725f
This commit is contained in:
Gilles Gouaillardet 2016-04-06 09:45:45 +09:00
parent f858647779
commit 7b803ac557

View File

@ -101,6 +101,8 @@ int MPI_Unpack(const void *inbuf, int insize, int *position,
rc = opal_convertor_unpack( &local_convertor, &outvec, &iov_count, &size );
*position += size;
OBJ_DESTRUCT( &local_convertor );
} else {
rc = 1;
}
OPAL_CR_EXIT_LIBRARY();