commit | 2f543f205cdb42e7324974c8ab093e33055e4476 | [log] [tgz] |
---|---|---|
author | yang-g <yangg@google.com> | Wed Aug 19 15:14:17 2015 -0700 |
committer | yang-g <yangg@google.com> | Wed Aug 19 15:14:17 2015 -0700 |
tree | 5acb1d613b700bc521b59b8df5e6f08823f24f50 | |
parent | 89bede02f16905eb48b71710dc4ea2542b3a5ca1 [diff] [blame] |
Bug fix. Called c_str on a temp string
diff --git a/src/cpp/client/channel.cc b/src/cpp/client/channel.cc index 9695a0f..17f31c2 100644 --- a/src/cpp/client/channel.cc +++ b/src/cpp/client/channel.cc
@@ -71,7 +71,7 @@ } 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(); }