Bug fix. Called c_str on a temp string
This commit is contained in:
parent
89bede02f1
commit
2f543f205c
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue