should use c_str

pull/501/head
Yang Gao 10 years ago
parent 76b693f69a
commit bb017c5568
  1. 2
      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);

Loading…
Cancel
Save