Fix comiler warning

pull/14434/head
Noah Eisen 7 years ago
parent 22f363981a
commit dda548f6d7
  1. 3
      src/objective-c/GRPCClient/private/GRPCChannel.m

@ -188,8 +188,7 @@ static grpc_channel_args *BuildChannelArgs(NSDictionary *dictionary) {
if (timeout < 0) {
timeout = 0;
}
grpc_slice host_slice;
memset(&host_slice, 0, sizeof(host_slice));
grpc_slice host_slice = grpc_empty_slice();
if (serverName) {
host_slice = grpc_slice_from_copied_string(serverName.UTF8String);
}

Loading…
Cancel
Save