aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/client/channel.cc
diff options
context:
space:
mode:
authorGravatar David G. Quintas <dgq@google.com>2015-08-19 15:21:32 -0700
committerGravatar David G. Quintas <dgq@google.com>2015-08-19 15:21:32 -0700
commite710e2bb999bcbfb6fd9a9866d1380d74840077b (patch)
tree5acb1d613b700bc521b59b8df5e6f08823f24f50 /src/cpp/client/channel.cc
parent89bede02f16905eb48b71710dc4ea2542b3a5ca1 (diff)
parent2f543f205cdb42e7324974c8ab093e33055e4476 (diff)
Merge pull request #3001 from yang-g/temp_str
Bug fix. Called c_str on a temp string
Diffstat (limited to 'src/cpp/client/channel.cc')
-rw-r--r--src/cpp/client/channel.cc2
1 files changed, 1 insertions, 1 deletions
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();
}