1
1

Merge pull request #2813 from jjhursey/fix/ibm/comm-cleanup

communicator: Fix uninitialized variable
Этот коммит содержится в:
Josh Hursey 2017-01-26 14:35:32 -06:00 коммит произвёл GitHub
родитель 2e64bf42fb a2d45f6e9f
Коммит f4a86904c4
2 изменённых файлов: 4 добавлений и 0 удалений

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

@ -20,6 +20,7 @@
* Copyright (c) 2013-2016 Intel, Inc. All rights reserved.
* Copyright (c) 2014-2016 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* Copyright (c) 2016 IBM Corporation. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -210,6 +211,7 @@ static ompi_comm_cid_context_t *mca_comm_cid_context_alloc (ompi_communicator_t
context->send_first = send_first;
context->iter = 0;
context->ok = 1;
return context;
}

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

@ -7,6 +7,7 @@
* Copyright (c) 2004-2016 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights
* reserved.
* Copyright (c) 2016 IBM Corporation. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -260,6 +261,7 @@ void ompi_comm_request_return (ompi_comm_request_t *request)
{
if (request->context) {
OBJ_RELEASE (request->context);
request->context = NULL;
}
OMPI_REQUEST_FINI(&request->super);