1
1

* Fix uninitialized variable warning. Technically, start's group should be

a subset of win's group, so this should never happen.  But users have
  been known to screw up before, so return a reasonable error.

This commit was SVN r8855.
Этот коммит содержится в:
Brian Barrett 2006-01-31 15:32:40 +00:00
родитель 9d484916db
Коммит 762fe70bd1

Просмотреть файл

@ -213,7 +213,7 @@ ompi_osc_pt2pt_module_complete(ompi_win_t *win)
/* for each process in group, send a control message with number
of updates coming, then start all the requests */
for (i = 0 ; i < ompi_group_size(P2P_MODULE(win)->sc_group) ; ++i) {
int comm_rank, j;
int comm_rank = -1, j;
opal_list_item_t *item;
opal_list_t *req_list;
/* no need to increment ref count - the communicator isn't
@ -231,6 +231,10 @@ ompi_osc_pt2pt_module_complete(ompi_win_t *win)
break;
}
}
if (comm_rank == -1) {
ret = MPI_ERR_RMA_SYNC;
goto cleanup;
}
req_list = &(P2P_MODULE(win)->p2p_pending_out_sendreqs[comm_rank]);