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