1
1
Event var_deref_op: Variable "requests" tracked as NULL was
   dereferenced.
   Only check requests[i] for NULL, if requests is != NULL itself.

This commit was SVN r17973.
Этот коммит содержится в:
Rainer Keller 2008-03-26 08:19:55 +00:00
родитель 56f3d59f2a
Коммит 334b64e760

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

@ -54,13 +54,14 @@ int MPI_Startall(int count, MPI_Request *requests)
rc = MPI_ERR_REQUEST; rc = MPI_ERR_REQUEST;
} else if (count < 0) { } else if (count < 0) {
rc = MPI_ERR_ARG; rc = MPI_ERR_ARG;
} } else {
for (i = 0; i < count; ++i) { for (i = 0; i < count; ++i) {
if (NULL == requests[i] || if (NULL == requests[i] ||
(OMPI_REQUEST_PML != requests[i]->req_type && (OMPI_REQUEST_PML != requests[i]->req_type &&
OMPI_REQUEST_NOOP != requests[i]->req_type)) { OMPI_REQUEST_NOOP != requests[i]->req_type)) {
rc = MPI_ERR_REQUEST; rc = MPI_ERR_REQUEST;
break; break;
}
} }
} }
OMPI_ERRHANDLER_CHECK(rc, MPI_COMM_WORLD, rc, FUNC_NAME); OMPI_ERRHANDLER_CHECK(rc, MPI_COMM_WORLD, rc, FUNC_NAME);