diff --git a/ompi/mpi/c/file_delete.c b/ompi/mpi/c/file_delete.c index 4e5c9a07fb..8cb3bc68ef 100644 --- a/ompi/mpi/c/file_delete.c +++ b/ompi/mpi/c/file_delete.c @@ -65,7 +65,7 @@ int MPI_File_delete(char *filename, MPI_Info info) initialized). We might want to add a check to see if the framework is open instead of just incrementing the open count. */ - if (OMPI_SUCCESS != (mca_base_framework_open(&ompi_io_base_framework, 0))) { + if (OMPI_SUCCESS != (rc = mca_base_framework_open(&ompi_io_base_framework, 0))) { return OMPI_ERRHANDLER_INVOKE(MPI_FILE_NULL, rc, FUNC_NAME); } diff --git a/ompi/mpi/c/register_datarep.c b/ompi/mpi/c/register_datarep.c index 00f618850d..7c4a92972c 100644 --- a/ompi/mpi/c/register_datarep.c +++ b/ompi/mpi/c/register_datarep.c @@ -58,7 +58,7 @@ int MPI_Register_datarep(char *datarep, and MPI_FILE_DELETE are the only two places that it will be initialized). */ - if (OMPI_SUCCESS != (mca_base_framework_open(&ompi_io_base_framework, 0))) { + if (OMPI_SUCCESS != (rc = mca_base_framework_open(&ompi_io_base_framework, 0))) { return OMPI_ERRHANDLER_INVOKE(MPI_FILE_NULL, rc, FUNC_NAME); }