diff options
author | Yang Gao <yangg@google.com> | 2015-02-17 10:26:15 -0800 |
---|---|---|
committer | Yang Gao <yangg@google.com> | 2015-02-17 10:26:15 -0800 |
commit | bb017c5568058295b5d8a1ba2054301a8ffe154b (patch) | |
tree | b6ec73b91d826ff540e5260aa696677768767d07 /src | |
parent | 76b693f69aa02fb7b524e5d0f36470bcf4b61454 (diff) |
should use c_str
Diffstat (limited to 'src')
-rw-r--r-- | src/cpp/client/channel.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpp/client/channel.cc b/src/cpp/client/channel.cc index c4794d717d..95b7aabc1d 100644 --- a/src/cpp/client/channel.cc +++ b/src/cpp/client/channel.cc @@ -84,7 +84,7 @@ Call Channel::CreateCall(const RpcMethod &method, ClientContext *context, grpc_channel_create_call( c_channel_, cq->cq(), method.name(), context->authority().empty() ? target_.c_str() - : context->authority(), + : context->authority().c_str(), context->RawDeadline()); context->set_call(c_call); return Call(c_call, this, cq); |