Skip to content

Commit

Permalink
Merge pull request #26 from yosefe/topic/iodemo-init-ep-to-NULL
Browse files Browse the repository at this point in the history
IODEMO: init ep to null
  • Loading branch information
yosefe authored Sep 8, 2020
2 parents 65495ff + 16debbe commit ea9feef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/apps/iodemo/ucx_wrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ unsigned UcxConnection::_num_instances = 0;

UcxConnection::UcxConnection(UcxContext &context, uint32_t conn_id) :
_context(context), _conn_id(conn_id), _remote_conn_id(0),
_close_request(NULL)
_ep(NULL), _close_request(NULL)
{
++_num_instances;
struct sockaddr_in in_addr = {0};
Expand Down Expand Up @@ -581,6 +581,7 @@ bool UcxConnection::connect_common(ucp_ep_params_t& ep_params)

ucs_status_t status = ucp_ep_create(_context.worker(), &ep_params, &_ep);
if (status != UCS_OK) {
assert(_ep == NULL);
UCX_LOG << "ucp_ep_create() failed: " << ucs_status_string(status);
return false;
}
Expand Down

0 comments on commit ea9feef

Please sign in to comment.