Skip to content

Commit f4a8690

Browse files
authored
Merge pull request #2813 from jjhursey/fix/ibm/comm-cleanup
communicator: Fix uninitialized variable
2 parents 2e64bf4 + a2d45f6 commit f4a8690

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

ompi/communicator/comm_cid.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* Copyright (c) 2013-2016 Intel, Inc. All rights reserved.
2121
* Copyright (c) 2014-2016 Research Organization for Information Science
2222
* and Technology (RIST). All rights reserved.
23+
* Copyright (c) 2016 IBM Corporation. All rights reserved.
2324
* $COPYRIGHT$
2425
*
2526
* Additional copyrights may follow
@@ -210,6 +211,7 @@ static ompi_comm_cid_context_t *mca_comm_cid_context_alloc (ompi_communicator_t
210211

211212
context->send_first = send_first;
212213
context->iter = 0;
214+
context->ok = 1;
213215

214216
return context;
215217
}

ompi/communicator/comm_request.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* Copyright (c) 2004-2016 The University of Tennessee and The University
88
* of Tennessee Research Foundation. All rights
99
* reserved.
10+
* Copyright (c) 2016 IBM Corporation. All rights reserved.
1011
* $COPYRIGHT$
1112
*
1213
* Additional copyrights may follow
@@ -260,6 +261,7 @@ void ompi_comm_request_return (ompi_comm_request_t *request)
260261
{
261262
if (request->context) {
262263
OBJ_RELEASE (request->context);
264+
request->context = NULL;
263265
}
264266

265267
OMPI_REQUEST_FINI(&request->super);

0 commit comments

Comments
 (0)