- Coverity issue CID 35:
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.
Этот коммит содержится в:
родитель
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);
|
||||
}
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user