From 4fd0cf582f5ca19b12f1dbe2ea823be17e4e4b98 Mon Sep 17 00:00:00 2001 From: Joshua Hursey Date: Fri, 18 Nov 2016 10:49:26 -0500 Subject: [PATCH] communicator: Fix uninitialized variable Signed-off-by: Joshua Hursey (cherry picked from commit a2d45f6e9fbb01523e2ef186dfd11542978f5b12) Signed-off-by: Joshua Hursey --- ompi/communicator/comm_cid.c | 2 ++ ompi/communicator/comm_request.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ompi/communicator/comm_cid.c b/ompi/communicator/comm_cid.c index debbed45953..cb203f0ecce 100644 --- a/ompi/communicator/comm_cid.c +++ b/ompi/communicator/comm_cid.c @@ -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; } diff --git a/ompi/communicator/comm_request.c b/ompi/communicator/comm_request.c index f7372e27452..8ad390ee56b 100644 --- a/ompi/communicator/comm_request.c +++ b/ompi/communicator/comm_request.c @@ -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 @@ -259,6 +260,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);