Bug fix. Called c_str on a temp string

This commit is contained in:
yang-g 2015-08-19 15:14:17 -07:00
parent 89bede02f1
commit 2f543f205c
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}