From 2f543f205cdb42e7324974c8ab093e33055e4476 Mon Sep 17 00:00:00 2001 From: yang-g <yangg@google.com> Date: Wed, 19 Aug 2015 15:14:17 -0700 Subject: [PATCH] Bug fix. Called c_str on a temp string --- src/cpp/client/channel.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpp/client/channel.cc b/src/cpp/client/channel.cc index 9695a0f14b..17f31c22cb 100644 --- a/src/cpp/client/channel.cc +++ b/src/cpp/client/channel.cc @@ -71,7 +71,7 @@ Call Channel::CreateCall(const RpcMethod& method, ClientContext* context, } else { const char* host_str = NULL; if (!context->authority().empty()) { - host_str = context->authority().c_str(); + host_str = context->authority_.c_str(); } else if (!host_.empty()) { host_str = host_.c_str(); } -- GitLab