From 10e3dc396bdbe228bf32cb2a56508523a72a5d64 Mon Sep 17 00:00:00 2001 From: Eugene Loh Date: Fri, 20 Jul 2012 01:32:06 +0000 Subject: [PATCH] Add a missing return value. This commit was SVN r26815. --- ompi/mca/coll/libnbc/nbc_iallgatherv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ompi/mca/coll/libnbc/nbc_iallgatherv.c b/ompi/mca/coll/libnbc/nbc_iallgatherv.c index 2dce8d12c9..adfe087be1 100644 --- a/ompi/mca/coll/libnbc/nbc_iallgatherv.c +++ b/ompi/mca/coll/libnbc/nbc_iallgatherv.c @@ -7,6 +7,8 @@ * * Author(s): Torsten Hoefler * + * Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved. + * */ #include "nbc_internal.h" @@ -60,7 +62,7 @@ int ompi_coll_libnbc_iallgatherv(void* sendbuf, int sendcount, MPI_Datatype send } else { /* copy my data to receive buffer */ rbuf = ((char *)recvbuf) + (displs[rank]*rcvext); - NBC_Copy(sendbuf, sendcount, sendtype, rbuf, recvcounts[rank], recvtype, comm); + res = NBC_Copy(sendbuf, sendcount, sendtype, rbuf, recvcounts[rank], recvtype, comm); if (NBC_OK != res) { printf("Error in NBC_Copy() (%i)\n", res); return res; } } sbuf = ((char*) recvbuf) + (displs[rank]*rcvext);